Answers.Body: <p>Try adding/changing the hyphenation settings in the config file? e.g.</p>
  
  <pre><code>// establishes minimum length of a word that may be hyphenated
  "set_min_length_hyphenation" =&gt; 5,
  
  // establishes minimum character requirement before a hyphenation point
  "set_min_before_hyphenation" =&gt; 3,
  
  // establishes minimum character requirement after a hyphenation point
  "set_min_after_hyphenation" =&gt; 2,
  </code></pre>
  
  <p>I ran into a similar problem. There were defaults set, but to get it to work, I had to explicitly add them to my file.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-01T18:05:41.580Z
Answers.Text: I have that in already...
Answers.UserDisplayName: Urs
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-01T18:07:35.763Z
Answers.Text: what language are you using it with? And can you explain me how it works in the first place? I mean, is this relying on some PHP modules with hyphenation rules, or how does it do the trick? Also, is it better than browser-side hyphenation – which is superbad for German..
Answers.UserDisplayName: Urs
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-22T14:24:25.893Z
Answers.LastActivityDate: 2020-04-22T14:24:25.893Z
Answers.UserDisplayName: SamC
Body: <p>I am stunned by the typogrify extension for craft. <a href="https://github.com/nystudio107/craft-typogrify" rel="nofollow noreferrer">https://github.com/nystudio107/craft-typogrify</a></p>
  
  <p>Alas, the functionalities that are most relevant to me are not kicking in (anymore). 
  As Andrew says on <a href="https://nystudio107.com/docs/typogrify/#troubleshooting" rel="nofollow noreferrer">https://nystudio107.com/docs/typogrify/#troubleshooting</a> </p>
  
  <blockquote>
    <p>If it doesn't look like Typogrify is doing anything to the HTML you're
    passing it, it is probably malformed HTML (syntax errors, missing
    closing tags, etc.). Fix your HTML, and Typogrify will prettify it!</p>
  </blockquote>
  
  <p>Well, in my case it's not, I'm outputting a text-only-field in a completely empty page. </p>
  
  <pre><code>{{ entry.lead|typogrify|smartypants }}
  </code></pre>
  
  <p>Most things are working: for example <code>(c)</code> is replaced by <code>©</code>, and I can switch it on or off with <code>"set_smart_marks" =&gt; true,</code></p>
  
  <p>But I can't get the Hyphenation to work:</p>
  
  <pre><code>// enables hyphenation of text
  "set_hyphenation" =&gt; true,
  
  // defines hyphenation language for text
  "set_hyphenation_language" =&gt; "de-CH",
  </code></pre>
  
  <p>At one point, the content was full of <code>&amp;shy;</code>s which seemed to come from Typogrify. Not anymore. Why could that be?</p>
  
  <p>I don't understand where typogrify gets the hyphenation rules from: maybe it requires additional php libraries that are missing?</p>
  
  <p>Also, I wonder how – when it works – to switch the hyphenation language in a multilingual site?</p>
  
  <hr>
  
  <p><strong>[SOLVED:]</strong> </p>
  
  <p><strong>Quotes to guillemets</strong></p>
  
  <p>I wanted to convert all kinds of accidental double quotes into swiss style <code>«Guillemets»</code> (like the french, but there's no space).</p>
  
  <p>I tried:</p>
  
  <pre><code>// curl quotemarks
  "set_smart_quotes" =&gt; true,
  
  // Primary quotemarks style
  // allowed values for $style
  "doubleGuillemetsFrench" =&gt; "&amp;laquo;&amp;nbsp;foo&amp;nbsp;&amp;raquo;",
  "set_smart_quotes_primary" =&gt; Quote_Style::DOUBLE_GUILLEMETS_FRENCH,
  </code></pre>
  
  <p>The reason it wouldn't work were surplus spaces in twig:</p>
  
  <pre><code>{{ entry.lead | typogrify | smartypants }}
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>{{ entry.lead|typogrify|smartypants }}
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-04-18T20:23:43.860Z
Comments.Text: I'm on it... ...
Comments.UserDisplayName: Urs
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-04-18T20:31:30.880Z
Comments.Text: I thought maybe there was a difference between my local environment and the web server. But it's behaving completely the same on local as on remote.
Comments.UserDisplayName: Urs
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-04-20T05:02:14.520Z
Comments.Text: Can you add your solution as an official answer instead of editing the question to add it?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-04-20T11:31:27.623Z
Comments.Text: Right; I should have made 2 questions. I hope I get the first part solved and then I‘ll add it to the solution...
Comments.UserDisplayName: Urs
Tags: <craft3><plugin-typogrify>
Title: Typogrify: hyphenation not kicking in
ThreadText: # Typogrify: hyphenation not kicking in
  
  (Asked by: username_0 on 2020-04-18)
  
  I am stunned by the typogrify extension for craft. <https://github.com/nystudio107/craft-typogrify>
  
  Alas, the functionalities that are most relevant to me are not kicking in (anymore).
  As Andrew says on <https://nystudio107.com/docs/typogrify/#troubleshooting>
  
  > If it doesn't look like Typogrify is doing anything to the HTML you're
  > passing it, it is probably malformed HTML (syntax errors, missing
  > closing tags, etc.). Fix your HTML, and Typogrify will prettify it!
  
  Well, in my case it's not, I'm outputting a text-only-field in a completely empty page.
  
  ```
  {{ entry.lead|typogrify|smartypants }}
  
  ```
  
  Most things are working: for example `(c)` is replaced by `©`, and I can switch it on or off with `"set_smart_marks" => true,`
  
  But I can't get the Hyphenation to work:
  
  ```
  // enables hyphenation of text
  "set_hyphenation" => true,
  
  // defines hyphenation language for text
  "set_hyphenation_language" => "de-CH",
  
  ```
  
  At one point, the content was full of `&shy;`s which seemed to come from Typogrify. Not anymore. Why could that be?
  
  I don't understand where typogrify gets the hyphenation rules from: maybe it requires additional php libraries that are missing?
  
  Also, I wonder how – when it works – to switch the hyphenation language in a multilingual site?
  
  ---
  
  **[SOLVED:]**
  
  **Quotes to guillemets**
  
  I wanted to convert all kinds of accidental double quotes into swiss style `«Guillemets»` (like the french, but there's no space).
  
  I tried:
  
  ```
  // curl quotemarks
  "set_smart_quotes" => true,
  
  // Primary quotemarks style
  // allowed values for $style
  "doubleGuillemetsFrench" => "&laquo;&nbsp;foo&nbsp;&raquo;",
  "set_smart_quotes_primary" => Quote_Style::DOUBLE_GUILLEMETS_FRENCH,
  
  ```
  
  The reason it wouldn't work were surplus spaces in twig:
  
  ```
  {{ entry.lead | typogrify | smartypants }}
  
  ```
  
  instead of
  
  ```
  {{ entry.lead|typogrify|smartypants }}
  
  ```
  
  **Tags:** craft3, plugin-typogrify
  
  > **Comments:**
  > **username_0**: I'm on it... ...  
  > **username_0**: I thought maybe there was a difference between my local environment and the web server. But it's behaving completely the same on local as on remote.  
  > **username_1**: Can you add your solution as an official answer instead of editing the question to add it?  
  > **username_0**: Right; I should have made 2 questions. I hope I get the first part solved and then I‘ll add it to the solution...  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-04-22. Score: 1
  
  Try adding/changing the hyphenation settings in the config file? e.g.
  
  ```
  // establishes minimum length of a word that may be hyphenated
  "set_min_length_hyphenation" => 5,
  
  // establishes minimum character requirement before a hyphenation point
  "set_min_before_hyphenation" => 3,
  
  // establishes minimum character requirement after a hyphenation point
  "set_min_after_hyphenation" => 2,
  
  ```
  
  I ran into a similar problem. There were defaults set, but to get it to work, I had to explicitly add them to my file.
  
  > **Comments:**
  > **username_0**: I have that in already...  
  > **username_0**: what language are you using it with? And can you explain me how it works in the first place? I mean, is this relying on some PHP modules with hyphenation rules, or how does it do the trick? Also, is it better than browser-side hyphenation – which is superbad for German..  
  
  ---
  
  