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

Check footnote's consecutive paragraphs #1198

Closed
swfsql opened this issue Feb 17, 2018 · 5 comments
Closed

Check footnote's consecutive paragraphs #1198

swfsql opened this issue Feb 17, 2018 · 5 comments
Labels

Comments

@swfsql
Copy link
Contributor

swfsql commented Feb 17, 2018

In markdown, if a footnote has a consecutive paragraph, it starts the line with " " (four spaces). This is a formatting information that is easy to lose when translating.

So, for future texts, "~~~~" should be used instead, so that this information is much less-likely to get lost. Then I'll just replace it back to spaces before rendering the files.

Also, it is very desired to have a script to check, on original files, if there is any case of those consecutives paragraphs (any case of " " on the beginning of the line). If this is the case, the footnote and this cases count should be recorded, and then later, compared to the translated text. If the translation's count is less, it should be notified that there is formatting information that was lost.

Then I'll just go and fix it on Github.

@swfsql swfsql added the bug label Feb 17, 2018
@swfsql swfsql self-assigned this Feb 17, 2018
@swfsql
Copy link
Contributor Author

swfsql commented Feb 19, 2018

Footnote consecutive paragraph now starts with ...., since ~~~~ would already have a strike-thru meaning in some markdown visualizers.

@swfsql
Copy link
Contributor Author

swfsql commented Feb 19, 2018

Nevermind, 4 dots are ambiguous since it's unknown if the author omitted some text.
It will be :::: instead, since this is not used for anything and don't distract that much

@swfsql
Copy link
Contributor Author

swfsql commented Feb 21, 2018

pdf render updated: swfsql/genpdf@bc01ca4

2018-02-20 23_17_33-hellow_world rs

there are new options, such as "check footer". It will count multi-lined footers from original files and will compare with the selected translations.

ps. the original file footer was incorrect, it appears that crowdin erased that explicit formatting information, although it was in the end of the file.

So the count differences are shown:
2018-02-20 23_16_54-mingw64__c_users_thiago_desktop_ancap ch_genpdf
It informs the markdown index (should also print it's name), and highlights which footnote is wrong (should also show it's explicit number).

@swfsql
Copy link
Contributor Author

swfsql commented Feb 25, 2018

Before closing, it needs to also verify if the total number of footnotes, not only their line count, is the same.
Must error if it's not.

@swfsql
Copy link
Contributor Author

swfsql commented Jun 23, 2019

Moved to swfsql/genpdf#26

@swfsql swfsql closed this as completed Jun 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant