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

Create pdf pages generator git project #23

Open
hugolpz opened this issue Apr 26, 2018 · 3 comments
Open

Create pdf pages generator git project #23

hugolpz opened this issue Apr 26, 2018 · 3 comments

Comments

@hugolpz
Copy link
Owner

hugolpz commented Apr 26, 2018

Input :

  • By: the teacher, via input field.s
  • Content, after parsing πŸ˜€
    • Array of characters [ {character: " ζˆ‘"}, {character: " ηš„"} ] (compulsary) or
    • Array of characters with additional information
[
   { character: " ζˆ‘", phonetic: "wΗ’", definition:"Je", sample:"ζˆ‘ηš„εͺ½εͺ½", derivatives: "ζˆ‘ηš„, ζˆ‘δ»¬"},
   { character: " ηš„" }
]

Output

Level 1:

Level 2:

Examples for inspiration:
screenshot from 2018-04-26 21-28-25
writing-chinese-calligraphy-home
screenshot from 2019-02-18 14-02-32

Level 3:

  • Webpage: list has persistant url.
@hugolpz
Copy link
Owner Author

hugolpz commented Apr 27, 2018

@chanind, I explored a bit 2 of the possible ways to produce A4 pdfs. On the html2pdf approach, it seems the svg transform / translate get in the way. Could you take a brief look at this one, maybe you will 'feel' the issue thanks to your understanding of hanzi-writer :

HTML2PDF tool, converts an html element into pdf, bug on svg translation (?):

PDFkit, an in-client pdf generator, exploration has issues but progresses :

Exploration will continue.

@chanind
Copy link

chanind commented Apr 28, 2018

I'm not sure what the issue could be, the SVG is pretty simple. As a minor aside, I'd recommend rendering the strokes in reverse order so the black strokes show up on top of the gray strokes.

@hugolpz
Copy link
Owner Author

hugolpz commented Feb 6, 2019

New exploration : https://codepen.io/hugolpz/pen/jdwgvr

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

No branches or pull requests

2 participants