Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footnotes messed up in text export #504

Open
vvasuki opened this issue Apr 6, 2023 · 3 comments
Open

Footnotes messed up in text export #504

vvasuki opened this issue Apr 6, 2023 · 3 comments

Comments

@vvasuki
Copy link
Contributor

vvasuki commented Apr 6, 2023

Observe last lines in https://ambuda.org/proofing/kushakumudvatiya/download/text

[^1]M omits नाम [^2]T1, T2 add- ओंकारश्चाथशब्दश्च द्वावेतौ ब्रह्मणः पुरा। कण्ठं भित्त्वा विनिर्यातौ तस्मान्माङ्गलिकावुभौ॥ओं।। T2 adds- इदं कुशकुमुद्वतीयं नाम नाटकं रामाभट्टेन लिखितम्। obviously this is the name of the scribe. M- इत्थं श्रीमत्तञ्जनगरविराजमानं श्रीमद्राजकीयं श्रीसरस्वती महाल ताळपत्रग्रन्थानुसारेण लिखितं समवलोकितं च सद्विजयतेतराम्।

Contrast with what was actually typed at https://ambuda.org/proofing/kushakumudvatiya/178/ :

image

We observe that the footnote definitions were typed in separate lines but the backend mashes them up together without considering the fact that they start with the string [^.

Also, given that different pages use identical footnote numbers, it would be very useful for the text export to have page numbers, so that the footnote definition may be easily matched with anchor intra-page.

@shreevatsa
Copy link
Contributor

I count this as another point (like #503) in favour of the grand vision of rich editor + preview. :-) Either one would help on its own:

  • If the editor natively supported footnotes in its structure (rather than relying on markup), everything would be stored with a uniform structure,
  • If the editor had a preview (and the input was still markup like currently), the proofreader would have noticed something was amiss and inserted blank lines.

But in the meanwhile, I guess for this text separating the footnotes is part of the manual post-processing work required (or hack it in the code like you suggested: if a line in the markup starts with [^ then treat it as a separate footnote).

cc @suhasm fyi

@vvasuki
Copy link
Contributor Author

vvasuki commented Apr 7, 2023

I count this as another point (like #503) in favour of the grand vision of rich editor + preview. :-) Either one would help on its own:

  • If the editor natively supported footnotes in its structure (rather than relying on markup), everything would be stored with a uniform structure,

साधु।

But in the meanwhile, I guess for this text separating the footnotes is part of the manual post-processing work required

नैतत् साधु - at the very least the download offered should not be worse than whatever was input by the proofreader.

(or hack it in the code like you suggested: if a line in the markup starts with [^ then treat it as a separate footnote).

युक्तम्।

@shreevatsa
Copy link
Contributor

But in the meanwhile, I guess for this text separating the footnotes is part of the manual post-processing work required

नैतत् साधु - at the very least the download offered should not be worse than whatever was input by the proofreader.

Agreed: I meant that someone needs to make another pass on the proofreader's work, so that the backend's interpretation matches of the text matches what was intended. (So I meant one-time post-processing by a tech-savvy Ambuda person/volunteer, not by each person who downloads the text export.)

I also agree with offering a download that is the “raw” text input by the proofreader, with no “smart” processing line collapsing line breaks: I think (not sure) the issue #25 is about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants