paddymcall / SARIT-pdf-conversions

XML to PDF for SARIT texts
https://github.com/sarit/SARIT-corpus
2 stars 1 forks source link

Mark milestones with symbols in colour #49

Open ppasedach opened 8 years ago

ppasedach commented 8 years ago

To get rid of the lb etc. from the running text. My first idea was something like coloured circles:selection_117 And then the optional details of them in the margin.

You had some symbol in mind to use for that, what was its name?

ppasedach commented 8 years ago

I'm just running a test with tikz, and I'm afraid your worry of it being prohibitively expensive seems to be correct. Let's see if something can be done about it. The first run, where I suppose it sets the marks, takes more than 12 minutes, and it seems it gets slower with the time, the second run is only one and a half minutes as compared with the appr. 50 - 60 sec. without tikz. There seem to be some package incompatibilities also which one would need to look at in detail, I had to change a few package options and still latex stopped a few times, some problems with longtable and xcolor it seems. Oh, and the circles don't seem to come in the right places. See attached file. pramanavarttikavrttitikztest.pdf

I tried something with \kern also, but I don't quite get my circle into the right place yet, as seen in the example in the comment above. The circle command is after the Te, so the circle gets drawn there. I'd like it to be centered there, but with the solution I've found it will then overwrite the Te.

ppasedach commented 8 years ago

Here is a solution which almost works already, but it does slow things down by 30% and the output is still not optimal, owing to the command syntax I asked. This response also contains a second version with altered syntax which looks very good, but there one would have to do some stylesheet magic, something like determining if the milestone happens within a word, if so, take the last two characters (would have to check that) before the lb as an argument to the circle drawing command, if the milestone appears between two words, just draw the circle. That should be possible though, isn't it? Oh, and the slight option conflict between longtable (?) and xcolor somehow triggered by the loading of tikz would still need to be resolved,

ppasedach commented 8 years ago

A possible symbol could be just an enlarged I, capital i, with its serifs.