Changes

Jump to navigation Jump to search
688 bytes added ,  18:32, 15 February 2023
temporary workaround for hyphenating SHA sums
Very long continuous strings (such as SHA512 keys or DNA sequences) might have to be broken after any character, independent from the current hyphenation scheme.
== Example Line breaking with SHA512 sums ==This is Hans’ trick from Hans provided a way of breaking SHA512 sums in lines (now being checked).<ref>There might be an issue with the list for SHA512 keyscustom hyphenator that needs to be reviewed, since the first characters in the new line are missing.
<context source="yes">
}
\stopTEXpage
</context>
</ref>
 
As a workaround, a simpler way to break SHA sums in lines, but without any character would be (abusing both {{cmd|handletokens}} and {{cmd|softhyphen}}):
 
<context source="yes">
\define[1]\SHA{{\tt\handletokens #1\with\SHABreak}}
\define[1]\SHABreak{#1\softhyphen\hskip 0pt}
\startTEXpage[offset=1em, width=15em]
SHA sum \SHA{8b2f3c087046c3943ace0dc4f958ef2138e58a51b40e%
ef6fab6fa1aeb845cc257a410ab1b914bc399b4293f%
31c76fc2c73e5be5ea4d329f9e6820984688efec2}
\stopTEXpage
</context>
<context source="yes">
\define[1]\DNA{\handletokens #1\with\DNAspacer}
\define[1]\DNAspacer{#1\hskip 2.3pt plus .1pt}
== Help from ConTeXt-Mailinglist/Forum ==
 
All issues with:
{{Forum|SHA512}}
{{Forum|Linebreak after x characters}}
== Footnotes ==
[[Category:Basics]]
139

edits

Navigation menu