chchch / upama

A PHP library for comparing two or more Sanskrit TEI XML files and generating an apparatus with variants
GNU General Public License v2.0
10 stars 1 forks source link

Different font sizes for different layers of text #62

Open chakrabortydeepro opened 10 months ago

chakrabortydeepro commented 10 months ago

image

This text consists of the sūtra, the vṛtti and the nyāsa. For the sūtra, I am using the <lg> tag and for both the vṛtti and the nyāsa I am using the <p> .

In this text, the nyāsa starts from

श्वस प्राणने।

It is difficult to distinguish the vṛtti from the nyāsa. I can use <label> to mark the text but I was wondering if we can use different font sizes for these different layers of the text.

chakrabortydeepro commented 10 months ago

Perhaps something like <p style="commentary"> and <p style="subcommentary"> can be used

chchch commented 10 months ago

Hmm... I guess we could use different font sizes, but it kind of risks getting too small. I think <label> makes the most sense, and that's usually what I find the most informative when I'm scanning through a text with multiple layers like that — for example, the Kāśikāvṛtti, which also printed with the Padamañjarī and the Nyāsa. Each time one of the commentaries is printed, it starts with a heading announcing which one it is. The Nyāsa is printed in a smaller font, but it's really small... or maybe my eyes are just getting worse: https://archive.org/details/in.ernet.dli.2015.313442/page/n125/mode/1up

It gets even worse when you have more layers, like the Nyāyavārttikatātparyaṭīkā...

chakrabortydeepro commented 10 months ago

@chchch Thanks for your response, Charles! It's true that it might get very small. And we have the <note> that would then be even smaller. But the commentaries are sometimes so big that I need to scroll a lot to find the exact section I want. Different font sizes can make it easier and it will also look better. When we have small fonts we can easily zoom the browser (I very often do it on Saktumiva even now). So it won't be a big problem for me at least. Perhaps Prof. Wujastyk @wujastyk can give me some ideas.

wujastyk commented 10 months ago

I think the ease of zooming the browser window is the answer to very small sizes. Also, one can set one's browser to have a minimum font size. Another idea is a huge screen :-)

wujastyk commented 9 months ago

Can we return to this issue, Charles? Deepro needs to visually distinguish sūtras, commentary and subcommentary for his thesis. He and I agree that we're not fazed by tiny fonts. It's more important to have the distinction; readers can use their browser zoom. At the same time, from the XML point of view, it would be good to have logical markup as far as possible. I like Deepro's suggestion of <p style="commentary"> etc., and that should trigger as size decrease of one or two points. Same for subcommentary. But @rendition="font-size:50%" or something similar could work too, if those codes were sent through to Saktumiva's HTML.

chchch commented 9 months ago

I've added @style="stream1", @style="stream2", @style="stream3". Instead of smaller font sizes, I've added extra borders on the left to indicate nesting, like in e-mail replies. Let me know what you think.

chakrabortydeepro commented 9 months ago

Do you mean I should do this way? `

oṁ siddho varṇasamāmnāyaḥ ||1.1.1||
                </lg>`

Then <p xml:id="BB-1.1.1" style="stream2"> for the vṛtti

and <p xml:id="BBP-1.1.1-1" style="stream3"> for the nyāsa?

But I don't really see much difference except a line on the left side of the sutra. image

chchch commented 9 months ago

I pushed a bugfix... let me know if it works now. The idea is that the main text is implicitly "stream0", and all the subcommentarial layers are "stream1", "stream2", etc.

chakrabortydeepro commented 9 months ago

Thanks a lot, Charles. It works now.

On Sat, Sep 30, 2023 at 2:02 AM chchch @.***> wrote:

I pushed a bugfix... let me know if it works now. The idea is that the main text is implicitly "stream0", and all the subcommentarial layers are "stream1", "stream2", etc.

— Reply to this email directly, view it on GitHub https://github.com/chchch/upama/issues/62#issuecomment-1741709519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIIRWBIRN724GHIQSMM2HQDX47G2BANCNFSM6AAAAAA3UPB6HY . You are receiving this because you authored the thread.Message ID: @.***>

-- Deepro Chakraborty (he/him) PhD candidate Department of History, Classics, and Religion University of Alberta

The University of Alberta acknowledges that we are located on ᐊᒥᐢᑿᒌᐚᐢᑲᐦᐃᑲᐣ (Amiskwacîwâskahikan) Treaty 6 territory, and respects the history, languages, and cultures of the First Nations, Métis, Inuit, and all First Peoples of Canada, whose presence continues to enrich our institution.