odie2
Forum Replies Created
-
Forum: Plugins
In reply to: [Hyphenator] Help with InstalationHi,
Did you changed ‘Class to hyphenate’ to CSS class included in your WP theme (for example:
entry-content
)?
Or did you updated your theme to include defaulthyphenate
class?Greetings
Forum: Plugins
In reply to: [Hyphenator] hyphenation works on some pages, but not on othersHi,
I can’t see hyphenation on both your pages. Also there is no default “hyphenate” class in site source. Neither custom hyphenation class in configuration.
Please make sure, that you include “hyphenate” class in your template or change hyphenation class in Hyphenator Settings in WP Admin to something like “hentry” or “entry-content”.
Greetings,
MaciejHi,
Still experiencing the same problem.
Greetings
Forum: Reviews
In reply to: [Hyphenator] Nice but a bit dangerousHi,
Hyphenator does nothing with database except build-in WP functions to deal with settings. Hyphenation is done by JavaScript (client-side – in browser). No way to break your database.
It would be helpful if you could link your website and give more info like if you installed recently another plugins or something.
Greetings
Forum: Plugins
In reply to: [Hyphenator] Strange view on iPhoneEh, that code insterting sucks so much…
Forum: Plugins
In reply to: [Hyphenator] Strange view on iPhoneI think I found the problem (at least of overlapping letter, may not about replacing with previous from alphabet).
The same that I experienced last days on one of website.See
in your text. You perhaps can’t see anything in WordPress editor, because those are hard spaces (like ALT+Num 0160), but your text won’t breaking correctly in editor and on site. In my case that was shitty editor of the redactor (notepad.exe or Wordpad).I fixed it directly in MySQL database. I think you know what it is. If not, please try rewrite some of your text on plain or copy text to Notepad++ (or other true text editor) and try mark space between words and replace all with plain space. After that, please check result in Ctrl+U (source of page) in browser.
Forum: Plugins
In reply to: [Hyphenator] Strange view on iPhoneHi,
Could you test with my two workarounds for “Strange characters in Safari”, please?
I have no access to any iPhone device, so I can’t check it myself.Anyway I think it’s rather Hyphenator.js (if so, I will report it on GitHub) or CSS issue than plugin’s.
Please let me know if you test those linked.
Pozdrawiam
Forum: Plugins
In reply to: [Hyphenator] Links with apostrophe's – wrong transformation of ending "Hi,
If you provide a link to website with the issue (I guess it’s not sanktionsfrei.de, because of target blank) I can see what’s the problem.
Generally for the quotes – it’s somewhere in CSS either includes files.
For example – I have theme builded on Twenty Fourteen and Twenty Fifteen and both have different quotes. So please disable Hyphenator and see, if then quotes are the same as with enabled.At the moment you can monitor log only for every site separately in the network, not whole network. We wish to make one united view for every sites in network.
Hi,
Also wondering about that feature.
Currently I have WP Multi Network with 7 blogs (there will be much more) and it would be incredibly useful to check for security and editor’s mess in one place.
It’s little more complicated when going on Settings, but maybe concept from Jetpack (some network global and blog individual) or just blog individual will be enough.
For me the most important is just the Log, so I can take eye on every logged activity in whole network in one place.I could even help with doing it, but first I need to know how whole concept should look.
Greetings
Forum: Plugins
In reply to: [Hyphenator] Possible to prevent all Capitalized words from hyphenation?Perhaps when I finally add textarea for every possible option provided by
Hyphenator.js
, I will also add some presets like this.Let me know if it works for you, as for me.
Forum: Plugins
In reply to: [Hyphenator] Possible to prevent all Capitalized words from hyphenation?Hi,
I think you can do it with overwriting
onbeforehyphenationhandler
.As I still didn’t provided option to type own options in textarea, you have to modify code files (which will be overwritten with plugin update).
1. Open
/wp-content/plugins/hyphenator/plugin.php
.
2. Go to lines 134-143.
3. Replaceif ( ! empty( $hyphenator_defaultlanguage ) ) $hyphenatorConfig['defaultlanguage'] = $hyphenator_defaultlanguage; $hyphenatorExceptions = ( ! empty( $hyphenator_addexceptions ) ? "Hyphenator.addExceptions( '', '{$hyphenator_addexceptions}' );\n\t" : '' ) ?> <script type="text/javascript"> Hyphenator.config( <?php echo json_encode( $hyphenatorConfig ); ?> ); <?php echo $hyphenatorExceptions; ?> Hyphenator.run(); </script>
with
if ( ! empty( $hyphenator_defaultlanguage ) ) $hyphenatorConfig['defaultlanguage'] = $hyphenator_defaultlanguage; $hyphenatorConfig['onafterwordhyphenation'] = "function ( word ) { if ( word.length > 0 && typeof word == 'string' ) { var first_letter = word.substr( 0, 1 ); if ( ! isNaN( first_letter ) ) return word; if ( first_letter == first_letter.toUpperCase() ) { console.debug(word + ' : ' + first_letter + ' / ' + first_letter.toUpperCase()); word = word.replace( new RegExp( String.fromCharCode( 173 ), 'g' ), '' ); } } return word; }"; $value_arr = array(); $replace_keys = array(); foreach ( $hyphenatorConfig as $key => &$value ) { if ( strpos( $value, 'function (' ) === 0 || strpos( $value, 'function(' ) === 0 ) { $value_arr[] = $value; $value = '%' . $key . '%'; $replace_keys[] = '"' . $value . '"'; } } $json = json_encode( $hyphenatorConfig ); $json = str_replace( $replace_keys, $value_arr, $json ); $hyphenatorExceptions = ( ! empty( $hyphenator_addexceptions ) ? "Hyphenator.addExceptions( '', '{$hyphenator_addexceptions}' );\n\t" : '' ) ?> <script type="text/javascript"> Hyphenator.config( <?php echo $json; ?> ); <?php echo $hyphenatorExceptions; ?> Hyphenator.run(); </script>
Greetings
Forum: Plugins
In reply to: [Hyphenator] Strange characters in SafariHi Samuel,
For your settings – I used to set Script hook for
wp_footer()
as it improves page load time a bit and also to check Do not hide content during hyphenation as in my opinion it’s more user-friendly.Of course you can use custom class like
hyphenate
, even more – it’s recommended to use class wrapping less DOM (HTML tags etc.) elements (like you have for paragraphs instead in<body>
), as then plugin have less to check and parse, so it’s faster.First workaround
You should extend your CSS (by theme’sstyle.css
, plugin with Custom CSS or any other way) with.hyphenate { -webkit-font-variant-ligatures: no-common-ligatures; }
.Second workaround
(Not sure if it works for non-English languages.)The plugin still have no possibility to set every of available options in Hyphenator.js, as I had no time to do textbox giving possibility to write everything. Moreover – the CSS3 hyphenation were there, but it’s perhaps missed in some release.
I will try figure it as fast as I can, but at the moment please do it manually, step by step:
1. a) Connect to your server with FTP client.
2. a) Go to[your domain]/wp-content/plugins/hyphenator
(for me it’s for example/websites/kuzniczysko.pl/wp-content/plugins/hyphenator
).
3. a) Open fileplugin.php
.
4. a) download modified latest version of file: pluginphp.zip
5. a) Replace file.or
1. b) Go to https://www.samvriti.com//wp-admin/plugin-editor.php
2 b) Select ‘Hyphenator’ plugin from dropdown in top right.
3. b) Add on line 136 following code:$hyphenatorConfig['useCSS3hyphenation'] = true;
4. b) Save.If you need additional help, just let me know here or on e-mail: maciejka45 at gmail dot com
Greetings
Forum: Plugins
In reply to: [Hyphenator] Strange characters in Safarimathiasnater, thanks for the issue link.
Workarounds:
- disable automatic ligatures with the CSS-property
-webkit-font-variant-ligatures: no-common-ligatures;
or better - enable
useCSS3hyphenation
option
samtazbu, is any of those workarounds is enought for you, if you still experience this problem?
Forum: Reviews
In reply to: [Hyphenator] Great but not there yet…By the way I am going to add a field into settings to add possibility to specify every option provided by Hyphenator.js, but I have no enought time at the moment.
- disable automatic ligatures with the CSS-property