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

fix rendering issue with concealed attributes in hold mosaics mode #78

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

ZXGuesser
Copy link
Collaborator

No description provided.

Copy link
Owner

@rawles rawles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So as i understand it, what this is fixing is the idea that when a colour code cancels a previously-set conceal mode, then that colour code itself is still concealed, but everything subsequent isn't. Did I get that right? Is that in the standard?

Thanks for this!

@ZXGuesser
Copy link
Collaborator Author

Yup, the 'un-concealing' happens 'set-after' like the colour change. Once again the spec doesn't really explain how anything with hold mosaics should work, it just says:

up to the end of the row, or until a Colour Code attribute (codes 0/0 to 0/7 or 1/0 to 1/7) is encountered

@rawles
Copy link
Owner

rawles commented Jan 23, 2019

Yeah, that's the trouble with this spec - 'until' could mean either set-at or set-after. Have you observed it to work like that on televisions then?

@ZXGuesser
Copy link
Collaborator Author

The combination of concealed and held mosaics is pretty unusual as they're both rarely used codes to start with. I've made a test hashstring:
#0:QIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIEBH-e_mHLly5cuSX8mUKli_9AgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECBAgQIECA

The patch also ensures that the conceal has priority over the hold mosaic, i.e. the control code is replaced by space rather than the held mosaic.

I've attached photos of my old CRT and new LCD TVs rendering the test page. Both conceal the conceal code itself (set-at). However the new TV interprets the end of the concealed portion at the mosaic green code as my patch does (set-after) while the CRT interprets it as the current code (set-at)

old-conceal
old-reveal
new-conceal
new-reveal

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

Successfully merging this pull request may close these issues.

2 participants