Forum Replies Created

Viewing 15 replies - 1 through 15 (of 89 total)
  • Plugin Contributor odie2

    (@odie2)

    Hi,

    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 default hyphenate class?

    Greetings

    Plugin Contributor odie2

    (@odie2)

    Hi,

    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,
    Maciej

    Thread Starter odie2

    (@odie2)

    Hi,

    Still experiencing the same problem.

    Greetings

    Plugin Contributor odie2

    (@odie2)

    Hi,

    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

    Plugin Contributor odie2

    (@odie2)

    Eh, that code insterting sucks so much…

    https://odie2.atthouse.pl/files/sql.txt

    Plugin Contributor odie2

    (@odie2)

    I 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.

    Plugin Contributor odie2

    (@odie2)

    Hi,

    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

    Plugin Contributor odie2

    (@odie2)

    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.

    @mehdiomnia

    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

    Plugin Contributor odie2

    (@odie2)

    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.

    Plugin Contributor odie2

    (@odie2)

    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. Replace

    if ( ! 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

    Plugin Contributor odie2

    (@odie2)

    Hi 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’s style.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 file plugin.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

    Plugin Contributor odie2

    (@odie2)

    mathiasnater, 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?

    Plugin Contributor odie2

    (@odie2)

    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.

Viewing 15 replies - 1 through 15 (of 89 total)