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
Cannot position and size text in front matter #272
Comments
Would allowing Without opening up a discussion just yet of a similar music style attribute/specification), would it be a reasonable alternative for text block elements to allow a |
Do the same requirements also apply to |
It might be splitting hairs, but I see I tried looking it up in TEI, but it doesn't seem like they have the same concept of block-level elements. I think we should wait on It would be nice to have it on |
When you say "[i]t would be nice to have it", what "it" are you referring to -- BTW, I think you're right -- your view of |
"It" = the |
As used up to this point, the |
If that's the case, then I think we should choose one system and stick with it, since we now have at least three ways of defining spatial layout**:
Personally, I think that if we're to tackle any sort of overhaul of this, it should be for the next release since it will affect backwards compat. Adding **(And |
The "problem" is not as dire you imply --
A single system cannot work in all cases. For example, some things, such as slurs and ties, may need |
OK, so possibly just |
The problem I see with |
I'm inclined to agree, but wanted someone else to confirm it. I think this mean that |
My previous comment implies that I'm not as conflicted as I actually am. For instance, what should be used on |
I think this depends on the task at hand. Do you try to encode an existing source's accid? In that case, wouldn't a |
Using positional attributes on text elements is way too procedural; the positioning of the divs in your example belongs outside of MEI (ie your processing). |
Offsets ( In many cases, certainly for an accidental attached to a note, it's not necessary to explicitly set the position of the affected note as the attachment point. This is already taken care of by the fact that the |
Raff -- While I agree that in most cases, text layout can be left to the renderer / browser, there has to be provision for absolute, author-determined positioning. It's often best to put this info in an external location, like a CSS file, but it's also acceptable to put it inside the markup. HTML allows it, why not MEI? |
I am also not sure where this would lead us. We do not necessary want to have a full css system built-in and this should be a separated module, but since we have @x and @y on /p it is a good opportunity to clarify this. I am not sure the bounding box is a good way to go. They make sense for facsimile, where @ulx, @uly, etc. are perfect. To me, it would make more sense to have additional attributes for specifying the size of the text and the alignment. With text elements, I would expect @x and @y to refer to the baseline of the text (left, right or center depending on the alignment attribute mentioned above). |
Size of the text and alignment don't always capture all of the necessary information. You can have a text box that does not take up the full width of the page (as above) but is not positioned at either left, center, or right. So you would need, at a minimum, x/y/w/h. If I don't store it in MEI, where should I store it, @raffazizzi? It seems like a strange line to draw (no pun intended!), especially since we're already doing positioning on many other elements. |
We have
The question remains, however, do we need to provide some mechanism for positioning the paragraph and/or giving its dimensions? These can be left (as @raffazizzi has advised) outside of MEI entirely, in which case we should probably remove |
Even having x/y/w/h on |
But I think Jo's right that |
The next question is, Can |
If need be, I second adding x/y/w/h (or ulx/uly/lrx/lry) on |
I still see an important distinction between a box "above" (i.e., in a descriptive role) and a box "containing" (i.e., in a prescriptive role). Maybe I'm just in a mental rut, wouldn't it be useful keep the two systems separate? |
I am not sure |
Sorry, I did not see all the comments when sending my last one. @ahankinson : if |
Because text can wrap within these boxes, so you need to know the rightmost boundary (if x,y refers to the leftmost). Or am I missing something obvious? |
OK, I would assume you would encode the line breaks, as we do for page or system breaks. |
I don't think I would assume that there would always be line breaks. |
OK, so possibly just |
Isn't |
Hi all, just trying to get really old stuff done or at least close old tickets. Can anyone of you revise this against the current schema and help us decide wheter tand how to fix this or dismiss it |
As far as I can see it is still not possible to define a box of text with a fixed position and size. |
I can find no way to position and size text boxes in front matter.
<p>
supports@x
and@y
, but there may be multiple paragraphs in a box, and boxes may have width and height, which is not supported. I would think<div>
would behave as a block-level element (like HTML) but it seems to be missing any positioning or sizing attributes.Currently I have the following markup within
<front>
:The text was updated successfully, but these errors were encountered: