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

Different font sizes for different layers of text #62

Open
chakrabortydeepro opened this issue Aug 17, 2023 · 9 comments
Open

Different font sizes for different layers of text #62

chakrabortydeepro opened this issue Aug 17, 2023 · 9 comments

Comments

@chakrabortydeepro
Copy link

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
Copy link
Author

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

@chchch
Copy link
Owner

chchch commented Aug 27, 2023

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
Copy link
Author

@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
Copy link

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
Copy link

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
Copy link
Owner

chchch commented Sep 29, 2023

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.

chchch pushed a commit that referenced this issue Sep 29, 2023
@chakrabortydeepro
Copy link
Author

Do you mean I should do this way?
<lg type="sūtra" xml:id="KS-1.1.1" style="stream1"> <l>oṁ siddho varṇasamāmnāyaḥ ||1.1.1||</l> </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 pushed a commit that referenced this issue Sep 30, 2023
@chchch
Copy link
Owner

chchch commented Sep 30, 2023

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
Copy link
Author

chakrabortydeepro commented Oct 6, 2023 via email

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

3 participants