This commit is contained in:
Milan Hauth 2022-10-28 11:39:50 +02:00
parent c7e9cfd3bf
commit ccedb815c2
6 changed files with 564 additions and 4 deletions

View file

@ -4,6 +4,9 @@
# sane-backends -> scanimage
# imagemagick -> convert
set -e
set -x
# date
d=$(date +%Y-%m-%d.%H-%M-%S)
@ -36,7 +39,7 @@ small_scale=50%
# 15 MByte png file
resolution=300
mkdir /run/user/$(id --user) 2>/dev/null
mkdir /run/user/$(id --user) 2>/dev/null || true
# temp file
t=/run/user/$(id --user)/scan.$d.$title.png

View file

@ -1,10 +1,185 @@
# alchi/src/doc/costs
## tools
fixed costs
### printer
Samsung ProXpress M3825
100 eur
see also: [printing.md](printing.md)
### stapler
cheap booklet staplers will break like 50% of all staples
booklet from A4 sheets = depth 150 mm
currently, my book has 18 sheets A4 = 72 pages A5
keywords:
* booklet stapler
suchwörter:
* Blockhefter
* Blockheftgerät
* große Einlegetiefe
* Broschüren Heftgerät
* Langarm Broschüren Heftgerät
#### Novus B54 Blockhefter
new 100 - 150 eur
used from 50 eur
170 sheets
depth 250 mm
https://www.amazon.de/dp/B000KTBIUM
old model of Novus B56XL
#### Novus B56XL Blockhefter
new 100 - 150 eur
170 sheets
depth 250 mm
https://www.amazon.de/dp/B092FL4KPJ
#### Skrebba Skre 120 lang Blockhefter
aka: Skrebba Skre 117 120 lang Blockhefter
new 100 - 150 eur
used from 50 eur
#### not: small staplers
small staplers are too weak,
they will hurt your hands and patience
they are cheap, 20 - 40 eur new,
but not worth the trouble
##### Leitz NeXXt 5560
40 sheets
40 eur
https://myofficebrand.com/Heftgeraet-Leitz-NeXXt-5560-schwarz-420-Blatt-Oberlademechanik-HK-24-6-24-8-26-6-Metall-Kunststoff
## book costs
about 0.60 eur per book
* 0.30 eur for printing
* 0.30 eur for shipping
## printing costs
TODO
* paper: 0.6 cent per page (6 eur per 500 sheets = 1.2 cent per sheet)
* toner: 0.2 cent per page (Samsung MLT-D204E)
* drum: 0.1 cent per page (Samsung MLT-R204)
about 1 EUR per book
0.6 + 0.2 + 0.1 = 0.9 cent per page A4
1 book = 72 pages A5 = 36 pages A4 = 18 sheets A4
36 * 0.9 cent = 32.4 cent
### paper
```console
> for (const n_1000 of [0.5, 2.5, 5, 10, 15, 20, 25, 100]) { var n = 1000 * n_1000; console.log(`${n} blatt = ${n/1000} tsd blatt = ${n/500*5} eur = ${n/2500} karton = ${n/20} hefte`); }
500 blatt = 0.5 tsd blatt = 5 eur = 0.2 karton = 25 hefte
2500 blatt = 2.5 tsd blatt = 25 eur = 1 karton = 125 hefte
5000 blatt = 5 tsd blatt = 50 eur = 2 karton = 250 hefte
10000 blatt = 10 tsd blatt = 100 eur = 4 karton = 500 hefte
15000 blatt = 15 tsd blatt = 150 eur = 6 karton = 750 hefte
20000 blatt = 20 tsd blatt = 200 eur = 8 karton = 1000 hefte
25000 blatt = 25 tsd blatt = 250 eur = 10 karton = 1250 hefte
100000 blatt = 100 tsd blatt = 1000 eur = 40 karton = 5000 hefte
```
#### SpassAmDrucken
```
SpassAmDrucken
Dominik Watzinger
Am Reiterfeld 6
84329 Wurmannsquick
Germany
```
50km von trostberg
hin- und rückweg = 100km
10 liter/100km = 10 liter = 20 eur
= 40 eur fahrtkosten
---
https://www.ebay.de/itm/293625381812
20.000 Blatt SAD Standard Kopierpapier 75g/m² DIN-A4 weiß Druckerpapier Papier
240 eur inkl versand
6.00 eur / 500 blatt
---
https://www.ebay.de/itm/293648237446
Happy Office Kopierpapier 5000 Blatt DIN A4 80 g/m² Druckerpapier Papier weiß
65 eur inkl versand
6.50 eur / 500 blatt
---
https://www.ebay.de/itm/293498124241
2500 Blatt Happy Office 80g/m² Papier DIN A4 Kopierpapier HappyOffice weiß
33 eur inkl versand
6.60 eur / 500 blatt
---
https://www.ebay.de/itm/291853762989
1 Palette Inacopia Elite 80g/m² DIN-A4 weiß 100000 Blatt Kopierpapier Papier
1300 eur inkl versand
6.50 eur / 500 blatt
---
https://www.ebay.de/itm/291035890684
2500 Blatt inapa tecno Speed / multispeed 80g A4 Papier weiß Druck- Kopierpapier
37 eur inkl versand
7.40 eur / 500 blatt
## shipping costs
@ -21,6 +196,8 @@ https://www.deutschepost.de/de/b/brief_postkarte.html
groosbrief: A4, height 2 cm, weight 500 grams = 95 A4 sheets (80 g/m2) = 5 to 6 books = 1,60 EUR
1.60 eur per 5 books = 32 cent per book
groosbrief prio: with tracking, 2,70 EUR
maxibrief: A4, height 5 cm, weight 1000 grams = 190 A4 sheets (80 g/m2) = 10 to 12 books = 2,75 EUR
@ -32,3 +209,43 @@ https://www.deutschepost.de/de/w/buecherundwarensendung.html
büwa 500 = Bücher- und Warensendung, weight 500 grams, height 5 cm = 1,95 EUR
büwa 1000 = Bücher- und Warensendung, weight 1000 grams, height 5 cm = 2,25 EUR
### versandtasche
aka briefumschlag
format C4 zu klein? braucht format B4?
* DIN C4 = 229x324x40
* DIN B4 = 250x353x40
versandtasche DIN B4 braun 130 g/m2
selbstklebend oder haftklebend
https://myofficebrand.com/Versandtasche-Mayer-Kuvert-30005522-DIN-B4-250-x-353-mm-braun-selbstklebend-ohne-Fenster-130-g-m-Pckg-250
250 stück = 25 eur + 5 eur versand = 30 eur
110 g/m2 = unstabil?
https://www.ebay.de/itm/360515883966
250 stück = 20 eur inkl versand
#### faltentasche
format C4 reicht, weil falten + boden
* DIN C4 = 229x324x40
* DIN B4 = 250x353x40
zu teuer? mit Boden 2cm für groosbrief
versandtasche DIN C4 braun 130 g/m2
selbstklebend oder haftklebend
https://www.ebay.de/itm/362734759387
200 stück = 30 eur inkl versand

View file

@ -27,7 +27,7 @@ wanted specs
compare printers:
* [new printers with wanted specs](https://geizhals.de/?cat=prl&xf=19151_15000%7E3309_A4%7E716_30%7E718_250%7E719_128%7E720_LAN%7E721_Duplexeinheit%7E9822_1)
* [Samsung M3825 vs M2835 vs M3820](https://geizhals.de/?cmp=1115304&cmp=974929&cmp=974909&cmp=955880)
* [Samsung M3825 vs M4025](https://geizhals.de/?cmp=955880&cmp=974929&cmp=966762&active=1)
### Samsung ProXpress M3825
@ -42,6 +42,14 @@ search for "Samsung ProXpress"
* 10 kg
* pretty white-black case
### Samsung ProXpress M4025
new model of M3825
* same toner, same drum
* higher resolution: 1200 dpi
* more RAM: 256 MByte
#### Samsung ProXpress M3825ND
https://geizhals.de/samsung-proxpress-m3825nd-sl-m3825nd-see-a974929.html

View file

@ -2,6 +2,260 @@
small part of my todo list
## better than html
i want a better toolchain
modular = split files
must be compatible with github/gitlab/gitea blob api
== must be readable on github/gitlab/gitea
alternatives to html:
* markdown
* org-mode
* asciidoc
## markdown
https://github.com/milahu/random/blob/master/markdown/test-github-markdown-renderer.md
warning, this is one large file with 8000 lines of source code
https://github.com/milahu/alchi/blob/master/src/whoaremyfriends/markdown/wersindmeinefreunde.md
## org-mode
https://orgmode.org/
<blockquote>
Org Mode
Your life in plain text
A GNU Emacs major mode for keeping notes, authoring documents, computational notebooks, literate programming, maintaining to-do lists, planning projects, and more — in a fast and effective plain text system.
</blockquote>
Org Mode Syntax Is One of the Most Reasonable Markup Languages to Use for Text
https://karl-voit.at/2017/09/23/orgmode-as-markup-only/
### more complex than markdown
this is a problem for contributors
most people know markdown, but only the "pros" know org-mode
contributing should be as "low barriers" as possible
### images not working in github blob api
example
https://github.com/zzamboni/emacs-org-leanpub/blob/master/book.org#setting-up
actual image
https://github.com/zzamboni/emacs-org-leanpub/raw/master/manuscript/resources/images/leanpub-pricing-plans.png
image expected by github
https://github.com/zzamboni/emacs-org-leanpub/raw/master/images/leanpub-pricing-plans.png
workaround: symlink the images folder to every folder with org files
### org-mode and pandoc
https://pandoc.org/org.html
### org-mode books
https://github.com/zzamboni/emacs-org-leanpub/blob/master/book.org
### org-mode to html
#### ox-leanpub
https://github.com/zzamboni/ox-leanpub
> Note: you should use the Markua exporter, as its more mature, complete and actively developed by me. Some Org constructs might not be exported correctly to Markdown.
### leanpub
Publishing with Emacs, Org-mode and Leanpub
Easy and Powerful self-publishing
https://github.com/zzamboni/emacs-org-leanpub
https://leanpub.com/emacs-org-leanpub - commercial??
<blockquote>
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.
</blockquote>
<details>
<summary>tags relevant for my book</summary>
https://leanpub.com/bookstore?type=all&category=organizational_psychology
https://leanpub.com/bookstore?type=all&category=business_and_management
https://leanpub.com/bookstore?type=all&category=leadership
https://leanpub.com/bookstore?type=all&category=psychology
https://leanpub.com/bookstore?type=all&category=psychotherapy
https://leanpub.com/bookstore?type=all&category=anthropology
https://leanpub.com/bookstore?type=all&category=personal_science
https://leanpub.com/bookstore?type=all&category=social_science
https://leanpub.com/bookstore?type=all&category=social_justice
https://leanpub.com/bookstore?type=all&category=social_equity
https://leanpub.com/bookstore?type=all&category=family_and_parenting
https://leanpub.com/bookstore?type=all&category=economics
https://leanpub.com/bookstore?type=all&category=education
https://leanpub.com/bookstore?type=all&category=equality
https://leanpub.com/bookstore?type=all&category=chemistry
https://leanpub.com/bookstore?type=all&category=teamwork
https://leanpub.com/bookstore?type=all&category=startups
https://leanpub.com/bookstore?type=all&category=distributed_systems
https://leanpub.com/bookstore?type=all&category=leadership_agile
https://leanpub.com/bookstore?type=all&category=religion_and_spirituality
https://leanpub.com/bookstore?type=all&category=atheism
https://leanpub.com/bookstore?type=all&category=philosophy
https://leanpub.com/bookstore?type=all&category=selfhelp
https://leanpub.com/bookstore?type=all&category=diy
https://leanpub.com/bookstore?type=all&category=childrens_books
https://leanpub.com/bookstore?type=all&category=teen_and_young_adult
</details>
#### Markua format
example
https://github.com/zzamboni/emacs-org-leanpub/blob/master/manuscript/introduction.markua
https://leanpub.com/lfm/read
On Leanpub, there are two ways to write in plain text:
1. Leanpub Flavoured Markdown (LFM)
2. Markua 0.10
### org-mode to html
#### org-reveal
presentation in slides (slideshow)
https://github.com/yjwen/org-reveal
based on https://github.com/hakimel/reveal.js/ - The HTML Presentation Framework
### org-brain
mindmapping tool
https://github.com/Kungsgeten/org-brain
## asciidoc
* https://github.com/TalAter/awesome-book-authoring/issues
* https://medium.com/hackernoon/living-the-future-of-technical-writing-2f368bd0a272
* local copy: [living-the-future-of-technical-writing](living-the-future-of-technical-writing)
* https://github.com/git/git-scm.com
* https://github.com/progit/progit2
<blockquote>
Asciidoc
So I switched large portions of Pro Git to Asciidoc. The issue with Markdown was that it was too simple. It didnt specify things like table formatting, cross references, indexing, callouts, source code examples, etc. All of which Asciidoc does in a format that is just as easy to write.
</blockquote>
problem: not really compatible with github blob api
example: images are missing in
https://github.com/progit/progit2/blob/main/book/01-introduction/sections/about-version-control.asc
for example, this image is not visible
```asc
.Local version control
image::images/local.png[Local version control diagram]
```
actual location:
https://github.com/progit/progit2/raw/main/images/local.png
location expected by github renderer:
https://github.com/progit/progit2/raw/main/book/01-introduction/sections/images/local.png
so, image paths in asciidoc are relative to the project root
but github interprets the image path as relative to the asc file
### asciidoctor
render asciidoc to html, docbook, manpages, pdf, epub
https://github.com/asciidoctor
https://github.com/asciidoctor/asciidoctor in ruby
https://github.com/asciidoctor/asciidoctor.js in javascript
### asciidoc vs markdown vs org-mode
https://duckduckgo.com/?q=asciidoc+vs+markdown+limitations
https://duckduckgo.com/?q=asciidoc+vs+markdown+vs+org-mode
https://www.slant.co/versus/8769/23065/~org-mode_vs_asciidoc
https://www.slant.co/versus/1903/23065/~markdown_vs_asciidoc
slant.co
* 130 org-mode
* 60 markdown
* 30 asciidoc
## remove bindery
bindery is old, slow
@ -65,6 +319,14 @@ just: split into multiple html files
best of both worlds? use markdown with html for tables, annotations, ...
### markdown
started converting html to markdown:
[src/whoaremyfriends/markdown/](../whoaremyfriends/markdown/)
more notes there
### unified
code transformer
@ -73,6 +335,13 @@ parsing, inspecting, transforming, and serializing content through syntax trees
https://github.com/unifiedjs/unified
problem:
original formatting is lost (indents + newlines),
cannot prettify output (markdown with embedded html)
Format HTML in Markdown
https://github.com/prettier/prettier/issues/8480
#### remark
transform markdown to other formats
@ -81,12 +350,16 @@ https://github.com/remarkjs/remark
https://github.com/remarkjs/remark#example-turning-markdown-into-html
https://github.com/remarkjs/remark-rehype - markdown to html
#### rehype
transform html to other formats
https://github.com/rehypejs/rehype
https://github.com/rehypejs/rehype-remark - html to markdown
rehype-inline — inline JS, CSS, and image files
### latex

31
src/scripts/sync-git-mirrors.sh Executable file
View file

@ -0,0 +1,31 @@
#!/bin/sh
set -e
set -x
git stash -m "git pull-push $(date)"
# main repo
# https://github.com/milahu/alchi
git pull github master
git pull github master --tags
git push github
git push github --tags
# https://gitlab.com/milahu/alchi
git push gitlab
git push gitlab --tags
# https://try.gitea.io/milahu/alchi
# this is an automatic mirror
# updates are pulled by try.gitea.io
#git push gitea
git push srht
git push srht --tags
# http://it7otdanqu7ktntxzm427cba6i53w6wlanlh23v5i3siqmos47pzhvyd.onion/milahu/alchi
torsocks git push darktea
torsocks git push darktea --tags
git stash pop

View file

@ -7,3 +7,31 @@ remove
class="foldme"
sync from filename to <svg title="....">
add "anchor links" to headings
make headings clickable
<h2 id="some-id">
<a href="#some-id">some heading</a>
</h2>
parse query string for section routing and options
example: #/some-section?render
-> render book layout and scroll to "some-section"
debug
./scripts/validate-html.sh
10424:2 error Mismatched close-tag, expected '</div>' but found '</article>' close-order
where is the unclosed <div> tag??
https://stackoverflow.com/questions/6272327/how-to-find-the-unclosed-div-tag
https://htmlhint.com/
https://htmlhint-playground.netlify.app/
https://stackoverflow.com/questions/3269822/find-unclosed-html-tags
continue layout
Die Karavane zieht weiter