User:Bnstlv/paged-js: Difference between revisions

From XPUB & Lens-Based wiki
 
(12 intermediate revisions by the same user not shown)
Line 6: Line 6:
[https://pzwiki.wdka.nl/mediadesign/User:Bnstlv ''back to home'']
[https://pzwiki.wdka.nl/mediadesign/User:Bnstlv ''back to home'']


=== <span style="color: white; font-family: Monaco; color: white; background-color: black;> Paged.js </span>===
=== <span style="color: white; font-family: Monaco; color: white; background-color: black;> Paged.js | October 13th, 2022</span>===
<br>On Oct 13th, 2022 I was part of the [https://pagedjs.org/ Paged.js Workshop] - a one-day web-to-print session during which we dived into the capabilities of this platform.  
<br>On Oct 13th, 2022 I was part of a one-day long web-to-print workshop during which we dived into the capabilities of this platform. [https://pagedjs.org/ Paged.js is maintained by the nice folks at [https://coko.foundation Coco Foundation].


<br>''Links:''
====<br>Links:====
# https://coko.foundation
## [https://mattermost.coko.foundation/login Mattermost, a chat/community] (registration needed)
## https://mattermost.coko.foundation/login - chat/community on Mattermost (needs registration)
## [https://discourse.cabbagetreelabs.org Discourse]
## https://discourse.cabbagetreelabs.org  
# [http://www.lesvoisinsdustudio.ch/hybrid/hybrid.html Hybrid Project]
# http://www.lesvoisinsdustudio.ch/hybrid/hybrid.html
# [https://media.xpub.nl/2022/2022-10-13-pagedjs.html Video recording]
# Video recording: https://media.xpub.nl/2022/2022-10-13-pagedjs.html  
# [https://pzwiki.wdka.nl/mediadesign/Paged_Media_CSS_examples Paged Media CSS Examples]
  - Consider donating if you want to support their work!
  - Consider donating if you want to support their work!
>>[https://pad.xpub.nl/p/pagedjs Pad with all the notes]<<
----
====<br>Mission and Vision (the WHY)====
<br>It is an open-source solution based on the following:
- "Political point of view: free access"
- "Pragmatic point of view: collaboration"
''This makes it safe, autonomous and offers a great level of collaborativeness.''


-----
-----
>> [https://pad.xpub.nl/p/pagedjs Pad with notes]
====<br>Short intro vocabulary:====
 
<br>Short intro vocabulary:  
*HTML = tool to write semantic content
*HTML = tool to write semantic content
*CSS = cascading style sheet
*CSS = cascading style sheet
Line 26: Line 34:
*Printed book = what is a book? what is a printed book?  
*Printed book = what is a book? what is a printed book?  
**book = traditional definition, content, fixed layouts
**book = traditional definition, content, fixed layouts
- [https://en.wikipedia.org/wiki/Johannes_Gutenberg About Johannes Gutenberg]
- [https://gutenberg.org The Gutenberg Project]
*Website  
*Website  
*Single source publishing = when we speak about printing from the web we don't think of the physical object itself (a book) but rather than the content that goes into a variety of many different formats;
*Single source publishing = when we speak about printing from the web we don't think of the physical object itself (a book) but rather than the content that goes into a variety of many different formats;
Line 34: Line 40:


  - Paged.js is there for the missing features
  - Paged.js is there for the missing features
    based on W3C / specifications  (respect for standards)
* based on W3C / specifications  (respect for standards)
    polyfill = tool that translates content code that implements features on web browsers that do not support the features (transforming content into the browser can understand!
* polyfill = tool that translates content code that implements features on web browsers that do not support the features (transforming content into the browser can understand!


<br>How paged.js work? And the steps we need to take:
----
#create a <div>
====<br>How does Paged.js work?====
#create “page”
<br>And the steps we had to take during the day:
#define the page areas to put our content
#create a div in HTML
#create a “page”
#define the page's areas to put our content
#features
#features
    ##page sizes and margin (mm, but also px is fine)
##page sizes and margin (mm, but also px is fine)
    ##point is more precise than px for typography
##point is more precise than px for typography
    ##symmetric margins
##symmetric margins
    ##page breaks / but also we can avoid page breaks
##page breaks / but also we can avoid page breaks
    ##page numbers  
##page numbers  
    ##string-set (running headers and footers) - when titles are running out of the page and we want to place them onto the next
##string-set (running headers and footers) - when titles are running out of the page and we want to place them onto the next
    ##pseudo class selectors for pages  
##pseudo class selectors for pages  
    ##blank page
##blank page
    ##naming pages (in case we have different types of pages and we want to give them a different layout as well, for example, we have 4 pages and for each one of them we can assign a different layout via this function)
##naming pages (in case we have different types of pages and we want to give them a different layout as well, for example, we have 4 pages and for each one of them we can assign a different layout via this function)
    ##columns layout
##columns layout
    ##cross references = ex: see in this # page (referencing through CSS so we can refer the reader easily to a specific section of our work, text, book, etc)
##cross references = ex: see in this # page (referencing through CSS so we can refer the reader easily to a specific section of our work, text, book, etc)
 
----
<br>Mission and Vision - their WHY
- Open-source
- "Political point of view: free access"Important for Coko* to do whatever you want with Paged.js to do anything, including making money
- "Pragmatic point of view: collaboration"


*Paged.js is maintained by the nice folks at Coko.
<br>[https://pagedjs.org/made-with-paged.js.html Made with Paged.js]
<br>Great examples of people who used their platform to make publications.
*[https://controverses.org/mode-demploi/ Controverses] - the ++++ book!
*[https://waldenpond.press/ Waldenpond] - a generative pdf platform, customised to your liking and what you want to read throughout the month (it's on a monthly basis)


- тези двете неща го правят сигурно, защото е независимо, предлага голяма степен на колаборативност.  
''HTML is amazing because it is a language that talks to all browsers. Yet, writing HTML is not easy, you need to create many things on your own. As a result, you have a complex language that could not be understood by the browser. Then, the print editor marks down the content (it limits you) and decides how a page should look like on print. So you need a solution that can help you write HTML easier, simple text files, etc. Paged.js restores that same conversation with the browser in order to tell it how your file should look and be printed.'' - by [https://julie-blanc.fr/en/ Julie Blanc]


Examples of people who used their platform to make publications: https://pagedjs.org/made-with-paged.js.html
----
- https://controverses.org/mode-demploi/ (++++ book)
- https://waldenpond.press/ - generative pdf platform, customised to your liking and what you wanted to read throughout the month (it's on a monthly basis)
 
''HTML is amazing because it is a language that talks to all browsers. Yet, writing HTML is not easy, you need to create many things. what can help you write HTML easier, simple text files, etc. In the end, you have a complex language that could not be understood by the browser, so the print editor marks down the content (it limits you) and you can have a conversation with the browser and tell it how your file should look and be printed.'' - not sure if I understood it correctly tho.


----
====<br>HANDS ON TIME!====
<br>HANDS ON TIME!  
<br>What we needed to begin:
<br>For the workshop, you need:
  * a code editor
  * a code editor
  * a local server
  * a local server
Line 78: Line 78:
     **[https://gitlab.coko.foundation/pagedjs/pagedjs-plugins plugins]
     **[https://gitlab.coko.foundation/pagedjs/pagedjs-plugins plugins]
     **[https://gitlab.coko.foundation/pagedjs/starter-kits/print-a-webpage/-/tree/master/ print a webpage]
     **[https://gitlab.coko.foundation/pagedjs/starter-kits/print-a-webpage/-/tree/master/ print a webpage]
  * suggestion for content from [https://gutenberg.org Gutenberg library]
  * suggestion for content from [https://gutenberg.org Gutenberg Project]; [https://en.wikipedia.org/wiki/Johannes_Gutenberg About Johannes Gutenberg]


GitHub
GitHub & GitLab
- https://github.com/w3c/css-print
* [https://github.com/w3c/css-print CSS Print]
- https://github.com/w3c/css-print/issues/3
* [https://github.com/w3c/css-print/issues/3 CSS Print Issues]
- https://gitlab.coko.foundation/pagedjs/pagedjs/ - main page on Gitlab
* [https://gitlab.coko.foundation/pagedjs/pagedjs/ Pagedjs main page on Gitlab]


----
<br>[https://hub.xpub.nl/breadcube/~bo/paged.js/themountaineer.html Here is what I did]
*chose a book from the Gutenberg library about Mountaineering (I miss hiking and the Bulgarian mountains)
*exported the entire book in HTML
*opened the Paged.js and Jupyter Lab
*started editing the HTML and CSS but it was hard for men, did not know where to start
*Julie came to me and helped me [https://github.com/brackets-beautify/brackets-beautify beautify] the HTML code. the code was too messy and hard to read and differentiate a parent from a child. [https://stackoverflow.com/questions/34478731/brackets-io-is-there-a-way-to-auto-indent-format-html We did it in Brackets]. Stackoverflow to the rescue!
*get rid of almost the whole content (nothing personal tho) and left only two chapters, because it was hard to digest the information and so I scaled it down to 20 pages
*changed the cover image, aligned the book title to improve reliability and made the background color beige
*tried to fix the rest of the images to better fit inside the pages but I lost the battle
*at the end of our hands-on session, I finally started to understand what I was doing but the time was up
*each one of us (xpub 1 & 2) presented our works
*to me, the whole experience felt a bit like hiking, difficult, and tiring but rewarding. I managed to get to the base camp which was the most important!
*J&J are super cool people, helpful and encouraging, and have a great sense of humour!


http://www.lesvoisinsdustudio.ch/hybrid/hybrid.html
<br>Final thoughts:
 
- Paged.js = great solution, good cause
WHAT I DID: https://hub.xpub.nl/breadcube/~bo/paged.js/themountaineer.html
- Really liked everyone’s take on the task
- chose a book from Gutenberg about Mountaineering (miss hiking and the mountains)
- I was impressed by Chae's pdf that ''captures'' the moment (using gifs in pdf)
- exported the HTML
- opened the Paged.js and Jupyter Lap
- started to edit the html and css but it was too hard for men, did not know where to start
- Julie came to me and helped me beautify mu html code; it was too messy and hard to understand parent from child:
    - https://github.com/brackets-beautify/brackets-beautify
    - https://stackoverflow.com/questions/34478731/brackets-io-is-there-a-way-to-auto-indent-format-html
- cleared up almost the whole content and left only two chapters (nothing personal to the authors) it was hard to digest and so i scaled it down to 20 pages
- redid the cover image and title, changed the background color
- tried to fix the images to better fit into the pages but i lost the fight
- at the end i finally started to get what i was doing soo
- presented our books and shared how this whole experience felt a bit like hiking, difficult, tiring but I managed to get to the base camp which was the most important
- J&J are super cool people, helpful and encouraging, great sense of humour
- great solution, good cause, consider donating some money so they can keep going
 
Really liked everyone’s books, especially Stephen, Suzan, Chae (pdf that captures moments by using gifs), and the girl next to her (XPUB3), Miriam (meme)

Latest revision as of 17:27, 26 April 2023

back to home

Paged.js | October 13th, 2022


On Oct 13th, 2022 I was part of a one-day long web-to-print workshop during which we dived into the capabilities of this platform. Paged.js is maintained by the nice folks at [https://coko.foundation Coco Foundation.


Links:

    1. Mattermost, a chat/community (registration needed)
    2. Discourse
  1. Hybrid Project
  2. Video recording
  3. Paged Media CSS Examples
- Consider donating if you want to support their work!

>>Pad with all the notes<<



Mission and Vision (the WHY)


It is an open-source solution based on the following:

- "Political point of view: free access"
- "Pragmatic point of view: collaboration"

This makes it safe, autonomous and offers a great level of collaborativeness.



Short intro vocabulary:

  • HTML = tool to write semantic content
  • CSS = cascading style sheet
  • Responsive = Erica “a lot of pain” :)) flexibility, adaptiveness
  • Printed book = what is a book? what is a printed book?
    • book = traditional definition, content, fixed layouts
  • Website
  • Single source publishing = when we speak about printing from the web we don't think of the physical object itself (a book) but rather than the content that goes into a variety of many different formats;
  • Flux = Pagination
  • Missing features = running headers, page number, facing pages, page float, etc.
- Paged.js is there for the missing features
* based on W3C / specifications  (respect for standards)
* polyfill = tool that translates content code that implements features on web browsers that do not support the features (transforming content into the browser can understand!


How does Paged.js work?


And the steps we had to take during the day:

  1. create a div in HTML
  2. create a “page”
  3. define the page's areas to put our content
  4. features
    1. page sizes and margin (mm, but also px is fine)
    2. point is more precise than px for typography
    3. symmetric margins
    4. page breaks / but also we can avoid page breaks
    5. page numbers
    6. string-set (running headers and footers) - when titles are running out of the page and we want to place them onto the next
    7. pseudo class selectors for pages
    8. blank page
    9. naming pages (in case we have different types of pages and we want to give them a different layout as well, for example, we have 4 pages and for each one of them we can assign a different layout via this function)
    10. columns layout
    11. cross references = ex: see in this # page (referencing through CSS so we can refer the reader easily to a specific section of our work, text, book, etc)


Made with Paged.js
Great examples of people who used their platform to make publications.

  • Controverses - the ++++ book!
  • Waldenpond - a generative pdf platform, customised to your liking and what you want to read throughout the month (it's on a monthly basis)

HTML is amazing because it is a language that talks to all browsers. Yet, writing HTML is not easy, you need to create many things on your own. As a result, you have a complex language that could not be understood by the browser. Then, the print editor marks down the content (it limits you) and decides how a page should look like on print. So you need a solution that can help you write HTML easier, simple text files, etc. Paged.js restores that same conversation with the browser in order to tell it how your file should look and be printed. - by Julie Blanc



HANDS ON TIME!


What we needed to begin:

* a code editor
* a local server
* one of the starter kits
   **plugins
   **print a webpage
* suggestion for content from Gutenberg Project; About Johannes Gutenberg

GitHub & GitLab



Here is what I did

  • chose a book from the Gutenberg library about Mountaineering (I miss hiking and the Bulgarian mountains)
  • exported the entire book in HTML
  • opened the Paged.js and Jupyter Lab
  • started editing the HTML and CSS but it was hard for men, did not know where to start
  • Julie came to me and helped me beautify the HTML code. the code was too messy and hard to read and differentiate a parent from a child. We did it in Brackets. Stackoverflow to the rescue!
  • get rid of almost the whole content (nothing personal tho) and left only two chapters, because it was hard to digest the information and so I scaled it down to 20 pages
  • changed the cover image, aligned the book title to improve reliability and made the background color beige
  • tried to fix the rest of the images to better fit inside the pages but I lost the battle
  • at the end of our hands-on session, I finally started to understand what I was doing but the time was up
  • each one of us (xpub 1 & 2) presented our works
  • to me, the whole experience felt a bit like hiking, difficult, and tiring but rewarding. I managed to get to the base camp which was the most important!
  • J&J are super cool people, helpful and encouraging, and have a great sense of humour!


Final thoughts:

- Paged.js = great solution, good cause
- Really liked everyone’s take on the task
- I was impressed by Chae's pdf that captures the moment (using gifs in pdf)