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

Update the rules for parsing subjects #125

Merged
merged 17 commits into from
May 15, 2020
Merged

Conversation

qnga
Copy link
Contributor

@qnga qnga commented Mar 21, 2020

  • Add rules for sortAs, code and scheme properties
  • Don't try to split subjects if they are refined by some meta element
  • Make the parsing of subjects compliant with the rule

when parsing a publication in the streamer we always use the most complex form for each metadata to harmonize our output.

Fix #111.

@HadrienGardeur
Copy link
Contributor

This should be reviewed by @JayPanoz since he wrote the initial document.

streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
@qnga
Copy link
Contributor Author

qnga commented Mar 22, 2020

Thanks for the improvements JayPanoz.

streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
Copy link
Contributor

@JayPanoz JayPanoz left a comment

Choose a reason for hiding this comment

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

On second thought, fine-tuned the “case of conflict” paragraph as it makes the logic for the mapping tables more explicit, and more feature-proof – on top of covering cases we might have forgotten.

Also removed <dc:publisher> from this paragraph for EPUB conformance.

I think we’ll then be good to go. Thanks for the PR!

streamer/parser/metadata.md Outdated Show resolved Hide resolved
streamer/parser/metadata.md Outdated Show resolved Hide resolved
Copy link
Contributor

@JayPanoz JayPanoz left a comment

Choose a reason for hiding this comment

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

LGTM.

Thanks for the improvements!

@JayPanoz
Copy link
Contributor

JayPanoz commented May 1, 2020

I guess this PR + #135 can be merged now.

Next step for these EPUB parsing docs will be, as discussed a month ago during the engineering call, re-organising the EPUB doc a little bit based on nav doc (landmarks), opf, etc.

@mickael-menu
Copy link
Member

I'll merge it this Friday, unless someone vetoes it first.

@mickael-menu mickael-menu merged commit f53cbee into readium:master May 15, 2020
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.

Parsing Epub subjects
4 participants