Hyphenation for node and Polyfill for client-side hyphenation.
Javascript that implements client-side hyphenation of HTML-Documents
patgen ported to JavaScript
Curated list of standards and documentations about hyphenation
JavaScript that resizes font-size until text fits to it container
Optimizer and compiler/toolchain library for WebAssembly
Colorizes the syllables of words
AssemblyScript's website and documentation.
PR opened mnater/Hyphenopoly
Problem: Only first childNode gets unhyphenated
Solution: call replace() on innerHTML. This should be save in this context.
Notes: Alternatively loop over childNodes
Fixes #205, [ci skip]
pr created time in 25 days
issue commentmnater/Hyphenopoly
Thanks for pointing out the problem. I think in this case we could savely use innerHTML:
H.res.els.list.forEach((els) => {
els.forEach((elo) => {
elo.element.innerHTML = elo.element.innerHTML.replace(RegExp(C[elo.selector].hyphen, "g"), "");
});
});
comment created time in 25 days
issue commentmnater/Hyphenopoly
👍 I‘ll close this issue for now. Feel free to reopen if necessary.
comment created time in a month
issue closedmnater/Hyphenopoly
Is there a way to trigger a removal of added by this script hyphenation? I'm using it for languages unsupported by browser hyphenation, and I have a toggle which creates a "hyphens: none !important" style for the selector. When using browser hyphenation, it just works, hyphens gets removed. When using Hyphenopoly (with a language unsupported by Edge, eg we fall back to Hyphenopoly in this case), seems like the hyphenation sticks (at least, on Edge). Is there smth I can do with that?
closed time in a month
Evengardissue commentmnater/Hyphenopoly
Hyphenopoly.js doesn't "see" the CSS-Styles.
Try Hyphenopoly.unhyphenate()
comment created time in a month
push eventmnater/Hyphenopoly
commit sha 7ee7bbb04a6bdc3f6e7805de458436aa2fb18734
chore: update Codacy Badge [ci skip]
push time in a month
push eventmnater/Hyphenopoly
commit sha 0d1bdbe2a66fe12b855bd9c555869a3d4f524ac1
fix: ci config
push time in a month
push eventmnater/Hyphenopoly
commit sha 6145e2aeff13885ca6a27c9ae8882308def073ec
fix: require node v16 and update ci
push time in a month
created tagmnater/Hyphenopoly
Hyphenation for node and Polyfill for client-side hyphenation.
created time in a month
created tagmnater/Hyphenopoly
Hyphenation for node and Polyfill for client-side hyphenation.
created time in a month
push eventmnater/Hyphenopoly
commit sha 58a3d95f8f90390065daa90fadb8e290d2bdaa94
chore: 5.2.0-beta.2
push time in a month
push eventmnater/Hyphenopoly
commit sha d7f379e1e8089a01cc92e859204e717c2017be5e
refactor: translateMaps now need lesser load and store calls for smaller binary size and better performance. This also changes the memory layout of wasm-files. So the loader tests will fail until they load the updated binaries. [ci skip]
push time in a month
push eventmnater/Hyphenopoly
commit sha 87c59b24cc6f143e7eb5ff9be439e4e5d0749d5c
chore: bump devDependencies [ci skip]
push time in a month
issue closedAndreasFerdinand/Syllable.js
Anfrage Zusammenarbeit mit Hyphenopoly
Guten Tag Andreas
Da meine Söhne gerade lesen lernen, kam ich auf die Idee einen Silbenschriftkonverter zu programmieren - und dann suche ich, ob das nicht schon jemand gemacht hat und finde dieses Projekt, das dann auch noch meine eigene Silbentrennbibliothek (Hyphenopoly) verwendet. Schön, wenn sich OSS wieder mal lohnt ;-)
Jetzt ist es ja so, dass Hyphenopoly eigentlich nicht für die Silben- sondern für die Worttrennung am Zeilenende gemacht ist (die deutschen Begriffe sind hier etwas irreführend). Deshalb hast du ja in deinem Silbenschriftkonverter die Möglichkeit eingebaut, eigene Trennungen zu definieren.
Die deutschen Trennmuster werden sehr gut gepflegt (http://projekte.dante.de/Trennmuster/WebHome) und es gibt die Möglichkeit aus der Wortliste auch Trennmuster zu generieren, die (fast) alle/mehr Silben berücksichtigen (z.B. Au-to-ren statt Au-toren). Dies ist eigentlich für den Satz von Gesangstext gedacht, würde aber auch den Usecase eines Silbenschriftkonverters abdecken.
Ich könnte solche Trennmuster für Deutsch generieren und Hyphenopoly entsprechend ergänzen.
Pflegst du Syllable.js noch und würdest entsprechende PR annehmen oder soll ich einfach forken?
Beste Grüsse, Mathias
closed time in 2 months
mnaterissue commentmnater/Hyphenopoly
Beta versions should not be the latest official version with package managers
Thanks! Tagged v5.1.0 as "latest" and hopefully won't forget to tag future betas correctly.
comment created time in 2 months
issue closedmnater/Hyphenopoly
Beta versions should not be the latest official version with package managers
When using a package manager (in my case NPM) the beta versions are always suggested as the official latest. Shouldn't there only appear official releases that are safe to use, so no alpha, beta or pre-release versions?
And I wanted to mention: Thank you for this awesome work with this polyfill 👌 … using it in every project!
closed time in 2 months
peter-neumann-devpush eventmnater/Hyphenopoly
commit sha 3acf887d798845028d78d55d4a79110a5a2aa8b6
chore: emit sizes [ci skip]
push time in 3 months
push eventmnater/Hyphenopoly
commit sha 579b55a5f99ccc6d74233a47fcafca466fc018c5
fix: Subject feat: Subject BREAKING CHANGE: Subject chore: perf: test: refactor: H.hide (saves some bytes ;-) docs: Problem: Problem, Task, Reason for Commit Solution: Solution or List of Changes Notes: Special instructions, testing steps, rake, etc Fixes #nn, [ci skip]
push time in 3 months
push eventmnater/Hyphenopoly
commit sha 9c486cf5ce4b1ee4bb0632a03a42361d4c7f3e80
test: remove css-autohyphen in test3 [ci skip]
push time in 3 months
push eventmnater/Hyphenopoly
commit sha 4fe6860c60488f20986761b09437becb6594103e
chore: bump devDependencies and prepare release
push time in 3 months
push eventmnater/Hyphenopoly
commit sha 0eeefd0d95d294c1d00b32b1ce9ef78b509c124b
Squashed commit of the following: commit 89f57919e44ef1580706504bdaec175782cfc0f8 Author: mnater <mathiasnater@gmail.com> Date: Sun Jul 2 23:55:43 2023 +0200 test: adabt tests to new memory layout commit 437669a5d02b08ce4730b9789a1b8ab67a504886 Author: mnater <mathiasnater@gmail.com> Date: Thu Jun 29 23:51:41 2023 +0200 perf: use memory.fill to zero mem regions rearrange memory layout such thas regions to be zeroed are continuous. commit 23db1bce9a4a899adfd52087dc55be58001a7102 Author: mnater <mathiasnater@gmail.com> Date: Mon Jun 26 00:17:05 2023 +0200 refactor: remove unnecessary line, add comments [ci skip] commit 43bb08e842a59071f2e0d27debccf8da6dede0b5 Author: mnater <mathiasnater@gmail.com> Date: Sun Jun 25 23:36:34 2023 +0200 refactor: add word delimiter in wasm instead of js Problem: Words had to be delimited by . (charcode 46) in JS when written to memory. When the hyphenated word is read later from the same memory location this delimiters are gone. That's not very elegant and may be an issue once stringrefs will land... Solution: Add these delimiters in wasm and thus make them invisible for module users.
push time in 3 months