From f2861e95e41e9da667d93afbbfa38867d7de0cb9 Mon Sep 17 00:00:00 2001 From: cedounet <134267244+cedounet@users.noreply.github.com> Date: Thu, 18 Jan 2024 18:50:40 +0000 Subject: [PATCH 1/5] Typos (#336) * Remove caps in Finger poke test * Make sure empahasis work in receipe --------- Co-authored-by: Cedric --- book/glossary/glossary.tex | 2 +- book/wheat-sourdough/wheat-sourdough.tex | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/book/glossary/glossary.tex b/book/glossary/glossary.tex index e7286ae..ae4ecb6 100644 --- a/book/glossary/glossary.tex +++ b/book/glossary/glossary.tex @@ -213,7 +213,7 @@ of starter is used for the fermentolyse. The flour, water and starter are mixed together. By adding the starter early the dough becomes more extensible and easier to handle. -\item[Finger poke test] The Finger Poke Test is a simple yet effective way to +\item[Finger poke test] The finger poke test is a simple yet effective way to check if your sourdough bread is ready to bake. After the final rise, lightly flour your finger and gently press about half an inch into the dough. If the dough springs back slowly and leaves a slight indentation, it's perfect diff --git a/book/wheat-sourdough/wheat-sourdough.tex b/book/wheat-sourdough/wheat-sourdough.tex index 860ae7b..b9a9886 100644 --- a/book/wheat-sourdough/wheat-sourdough.tex +++ b/book/wheat-sourdough/wheat-sourdough.tex @@ -210,7 +210,7 @@ Find below an example recipe for 1 loaf including baker's math calculation: \item \qty{400}{\gram} of bread flour \item \qty{100}{\gram} of whole-wheat flour % Manual unit so we can use emphasis - \item \emph{Total: \qty{500}{\gram} of flour} + \item \emph{Total: 500~g of flour} \item \qtyrange{300}{450}{\gram} of room temperature water (\qty{60}{\percent} up to \qty{90}{\percent}). More on this topic in the next chapter. \item \qty{50}{\gram} of stiff sourdough starter (\qty{10}{\percent}) @@ -225,7 +225,7 @@ recipe would look like this: \item \qty{1600}{\gram} of bread flour \item \qty{400}{\gram} of whole-wheat flour % Manual unit so we can use emphasis again - \item \emph{Total: \qty{2000}{\gram} of flour}, equaling 4 loaves + \item \emph{Total: 2000~g of flour}, equaling 4 loaves \item \qty{1200}{\gram} up to \qty{1800}{\gram} of room temperature water (60 to \qty{90}{\percent}) \item \qty{200}{\gram} of stiff sourdough starter (\qty{10}{\percent}) \item \qty{40}{\gram} of salt (\qty{2}{\percent}) From 9fa7a768ea5f786d5f7b6425ae4941d349b8a4d7 Mon Sep 17 00:00:00 2001 From: Hendrik Kleinwaechter Date: Fri, 19 Jan 2024 09:09:00 +0100 Subject: [PATCH 2/5] Fix https:/ links without www. Uses a regex now --- website/modify_build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/modify_build.rb b/website/modify_build.rb index 903b175..bedfd5e 100644 --- a/website/modify_build.rb +++ b/website/modify_build.rb @@ -649,7 +649,7 @@ class ModifyBuild # For some reason some of the links are broken in the conversion process. # They have https:/www and are missing a slash. def fix_https_links(text) - text.gsub("https:/www", "https://www") + text.gsub(/https:\/(?!\/)/, 'https://') end end From fa714906a7f52f6e16493d7ea919a9b80aa589a7 Mon Sep 17 00:00:00 2001 From: Cedric Date: Mon, 15 Jan 2024 20:58:38 +0000 Subject: [PATCH 3/5] Force flowchart width to 100% For all floats actually... --- book/book-ebook.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/book/book-ebook.css b/book/book-ebook.css index ecc3e08..f652051 100644 --- a/book/book-ebook.css +++ b/book/book-ebook.css @@ -7,3 +7,12 @@ object-fit: contain; width: auto; } +.float { + max-width: 100%; +} +.float img { + max-width: 100% !important; + height: auto; + object-fit: contain; + width: auto; +} From 617901cc81f83bb26e73ada04def9a22cdbcb410 Mon Sep 17 00:00:00 2001 From: Ced Date: Fri, 19 Jan 2024 14:06:01 +0000 Subject: [PATCH 4/5] Add css files as dependency in makefile They were not tracked. Also reorganised a little bit to decouple pdf from ebook. --- book/makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/book/makefile b/book/makefile index a40a068..d77a8cc 100644 --- a/book/makefile +++ b/book/makefile @@ -49,9 +49,11 @@ images += $(foreach directory, $(chapters), $(wildcard $(directory)/*/*.png)) # images to lower resolution and greyscale bw_images := $(addprefix bw-book-epub/OEBPS/, $(images)) -src_all := $(src_tex) $(src_figures) $(src_tables) tex4ebook.cfg book.mk4 $(images) +src_all := $(src_tex) $(src_figures) $(src_tables) $(images) -website_src := $(src_all) website.cfg +ebook_src := $(src_all) tex4ebook.cfg book.mk4 book-ebook.css + +website_src := $(src_all) website.cfg style.css website_assets := $(wildcard ../website/assets/*) ruby_src := ../website/modify_build.rb $(website_assets) @@ -89,7 +91,7 @@ book_sans_serif/book_sans_serif.pdf: $(src_all) .PHONY: copy_ebook_files -epub/%.epub: %.tex $(src_all) cover/cover-page.xbb +epub/%.epub: %.tex $(ebook_src) cover/cover-page.xbb $(EBOOK) $< copy_ebook_files: build_ebook From a037ae43f24bd6a3664b67947b4a5e217d54291d Mon Sep 17 00:00:00 2001 From: Kevin Dungs Date: Mon, 29 Jan 2024 09:43:50 +0100 Subject: [PATCH 5/5] Fix tiny typo in bread types. (#339) --- book/bread-types/bread-types.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/bread-types/bread-types.tex b/book/bread-types/bread-types.tex index fa5e875..9ec8d07 100644 --- a/book/bread-types/bread-types.tex +++ b/book/bread-types/bread-types.tex @@ -346,7 +346,7 @@ A good trick to make excellent loaf pan bread is to make a very sticky dough. You can opt for a hydration of \qtyrange{90}{100}{\percent}, almost resembling a default sourdough starter. Just like with flatbread, the high humidity helps to make a more airy, fluffy crumb. The bread will -also be a bit chewier. This type of bread made with rye ismy family's favorite +also be a bit chewier. This type of bread made with rye is my family's favorite style of bread. The hearty rye flavor paired with the sticky consistency really makes an excellent sandwich bread.