suttacentral / bilara

Our Computer Aided Translation software
10 stars 8 forks source link

forbid comments on bilara headings #147

Open sujato opened 1 year ago

sujato commented 1 year ago

The Bilara interface should be able to infer headings from the segment numbers. Use this to disallow adding comments to headings.

(Comments translate as footnotes, which are always bad style on headings, and create a cascade of problems in LaTeX etc. Add the comment to the first text segment instead.)

Something like this regex should work for matching segments that are headings.

:0
:.*\.0":
:.*\.0\.\d":