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

Deprecations Appendix is seriously ugly #1854

Closed
hcayless opened this issue Feb 1, 2019 · 19 comments
Closed

Deprecations Appendix is seriously ugly #1854

hcayless opened this issue Feb 1, 2019 · 19 comments
Assignees

Comments

@hcayless
Copy link
Member

hcayless commented Feb 1, 2019

I mean, just look at it: http://www.tei-c.org/release/doc/tei-p5-doc/en/html/DEPRECATIONS.html. Is that a table? I can't even.

@hcayless hcayless self-assigned this Feb 1, 2019
@martindholmes
Copy link
Contributor

martindholmes commented Feb 1, 2019

Syd and I had that looking lovely when we first did it. Something must have changed. The date column should be centred. We could add table borders if that helps too.

I think it depends how much stuff happens to be in there; when there are lots of rows and content, the table organizes itself a bit better.

@jamescummings
Copy link
Member

Why have it be a table at all? Why not just a list with a few nested items per deprecation item?

@lb42
Copy link
Member

lb42 commented Feb 2, 2019

It looks a mess because there is already so much visual clutter on the page. But if you want to make it less of a mess:

  • lose the redundant subheading ("appendix G.1")
  • add some background fill to the heading row
  • add some whitespace at left and right of the whole table
  • left justify the column headings
    The last three are trivial tweaks to the CSS.

I agree with James that it doesn't need to be a table when there are so few items, but given that it probably does when there are many, and given that you don't want to have to revisit this problem every time you do a release, it's probably worth spending a bit more time on formatting the table acceptably.

You could also perhaps add some more explanatory text about what exactly is meant by deprecation at the beginning.

@jamescummings
Copy link
Member

To be clear, the reason I think it would be better as a list rather than as a table isn't to do with the number of items being deprecated but the nature of the data in the table. It is because after the thing-being-deprecated there are only 3 columns, one of which is a substantial prose column 'Description'. While the two examples given at the moment are fine with a quite terse description, I can certainly picture possible deprecations where a more substantial paragraph of prose is needed to explain the reason for the deprecation and workarounds or modifications needed by those who are affected by it.

I'm not sure if I can turn that into a generalised rule but whenever one's table has substantial prose in it, I think is probably worth looking at expressing it another way. I don't want to sort the data in this table (other than by its deprecation date which it already is) so that makes me more convinced it shouldn't be a table.

Plus, given the non-responsivity of the TEI Guidelines HTML output, it looks crap on my mobile phone. ;-)

@martindholmes
Copy link
Contributor

For whoever goes in to fix this, @sydb and I documented exactly how it works in a section in TCW20 called "Adding or Editing an Appendix":

http://teic.github.io/TCW/tcw20.html

@sydb
Copy link
Member

sydb commented Feb 3, 2019

@jamescummings: that description is just the content of the appropriate <desc> pulled in. Yes, @martindholmes is right, it looked better when we had a lot of stuff. But I think @lb42 is right, some CSS tweaking is in order. (And I’m not very good at that sort of stuff.)

@martindholmes
Copy link
Contributor

I added a bigger margin below the table, and centred the date column. Do we also want table and cell borders?

@martindholmes
Copy link
Contributor

@hcayless
Copy link
Member Author

hcayless commented Feb 4, 2019

I will try to explain what I hate about each column.

  1. I don't know what the identifier gives me, other than a link to the spec where the deprecation resides. The link itself is good. The text of the link adds nothing useful. Maybe just give the context (e.g. teidata.point or content)? And then make the column header "Context".
  2. I don't know what column two adds. Suggest getting rid of it.
  3. The header is massive. Change to "Removal After" or something like that.
  4. Column 4 is fine :-). It does occur to me that we don't really flag deprecation-related schematron rules on the spec page, and maybe we should. This description just appears over the rule, unmarked.

@lb42
Copy link
Member

lb42 commented Feb 4, 2019 via email

@martindholmes
Copy link
Contributor

I think we were just trying to put in all the information we ourselves would want to see in any release of the Guidelines, in order to check whether anything we rely on was deprecated. All the info in the table seems useful to me, but I guess if it looks ugly, it can easily be removed. Why not re-jig it to look the way you'd like it to, and see if everyone agrees?

@emylonas
Copy link
Contributor

emylonas commented Feb 5, 2019 via email

@peterstadler peterstadler added this to the Guidelines 3.7.0 milestone Sep 16, 2019
hcayless added a commit that referenced this issue Aug 6, 2020
@hcayless
Copy link
Member Author

hcayless commented Aug 7, 2020

I've had a go at reformatting the deprecations appendix as a list. If there are screams of rage and disappointment, this change can be rolled back. If not, I will close the issue.

I agree with @lb42 about the redundancy of the subheading, which is a side effect of the div structure of the appendix. If it's reformatted as a single div rather than a nested div, then you get the navigation TOC thingy on the right instead of the left and it looks weird (not least because the header assumes it's there and is positioned to be out of its way). There's a larger Guidelines redesign issue lurking here, but in this case, I think we have to live with it for now. We could make it less stupid simply by adding a section at the top with our deprecation policy in it...

@jamescummings
Copy link
Member

jamescummings commented Aug 7, 2020

@hcayless Maybe make items bulleted?
And maybe make the dates bold?

@martindholmes
Copy link
Contributor

FYI you can format a table as a list using pure CSS. We do that with large tables such as this:

https://mapoflondon.uvic.ca/mdtPrimarySourceLibraryProclamation.htm

If you make your browser window big, it's a table; if small, it's a list.

@hcayless
Copy link
Member Author

hcayless commented Aug 7, 2020

@jamescummings how about now? I'm not sure the bullets add much, tbh, but it's fine.

@martindholmes
Copy link
Contributor

I find this less readable than the table, to be honest. At least with the table you know where to find each piece of info (deprecation date or whatever) in its column.

@martinascholger
Copy link
Member

What about a table with two columns, date and description?

Date Description
2022-02-15 The use of value inside charProp to specify a character or glyph property value is being replaced by either unicodeProp, localProp, or unihanProp.

Or, a list with the date at the beginning.

  • 2022-02-15: The use of value inside charProp to specify a character or glyph property value is being replaced by either unicodeProp, localProp, or unihanProp.

@hcayless
Copy link
Member Author

We may tweak this further, but it's not as messy as it was, so closing.

hcayless added a commit that referenced this issue Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants