Insert non-breakable spaces into text (vlna)
Moderators: pe7er, General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Enthusiast
- Posts: 209
- Joined: Thu Oct 01, 2015 7:52 pm
Insert non-breakable spaces into text (vlna)
Dear users,
is there any plugin for inserting non-breakable spaces into (the currently) edited text, please? Such as vlna program on Unix https://www.systutorials.com/docs/linux/man/1-vlna/ or tilde/vlna for LaTeX.
is there any plugin for inserting non-breakable spaces into (the currently) edited text, please? Such as vlna program on Unix https://www.systutorials.com/docs/linux/man/1-vlna/ or tilde/vlna for LaTeX.
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Insert non-breakable spaces into text (vlna)
hi.
you must be more specific. there is button in wisiwig editors for inserting such symbol.
so paste paragraph of text and write what you want in result.
you must be more specific. there is button in wisiwig editors for inserting such symbol.
so paste paragraph of text and write what you want in result.
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
-
- Joomla! Enthusiast
- Posts: 209
- Joined: Thu Oct 01, 2015 7:52 pm
Re: Insert non-breakable spaces into text (vlna)
The result of pressing 1 single button in a wysiwyg editor for a text shall be the following:
where symbol ~ [tilde] means a non-breakable space (3 times in the text above).
Code: Select all
The result of pressing 1~single button in a~wysiwyg editor for a~text shall be the following:
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Insert non-breakable spaces into text (vlna)
if it's only about not letting single characters without leading non-space it's easy task for small plugin.
i will try make one in couple of days if nobody present another solution.
i will try make one in couple of days if nobody present another solution.
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
- Per Yngve Berg
- Joomla! Master
- Posts: 30937
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Insert non-breakable spaces into text (vlna)
Non-breakable space is character 160. It can be coded as   or
https://www.w3schools.com/html/html_charset.asp
https://www.w3schools.com/html/html_charset.asp
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Insert non-breakable spaces into text (vlna)
test this one
https://yadi.sk/d/F_96zUcVInyjKw
dont mess with options (they do nothing, i just make it from other plugin) just enable plugin.
press [NBS] editor button and text will replaced.
the text visually will be the same but if you copy text in World and highlight special symbols you will see difference.
https://yadi.sk/d/F_96zUcVInyjKw
dont mess with options (they do nothing, i just make it from other plugin) just enable plugin.
press [NBS] editor button and text will replaced.
the text visually will be the same but if you copy text in World and highlight special symbols you will see difference.
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
-
- Joomla! Enthusiast
- Posts: 209
- Joined: Thu Oct 01, 2015 7:52 pm
Re: Insert non-breakable spaces into text (vlna)
Dear effrit,
I'm sorry for the delay in my response. Thank you for the effort with the plugin and reminding me to test it. I downloaded it in time before expiration, but tested only now. The plugin works almost as expected.
It is putting between a single letter and a following word.
It is not putting a between a single letter and a word if these follows a single letter
Input
output
expected output
Is this something that can be handled programmatically, please?
I'm sorry for the delay in my response. Thank you for the effort with the plugin and reminding me to test it. I downloaded it in time before expiration, but tested only now. The plugin works almost as expected.
It is putting between a single letter and a following word.
It is not putting a between a single letter and a word if these follows a single letter
Input
Code: Select all
a k šifrovanému
Code: Select all
a k šifrovanému
Code: Select all
a k šifrovanému
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Insert non-breakable spaces into text (vlna)
this is just amazing.
i spend my time, make solution, even send you notification, and u silently take it without single word and now, after several day u return and ask for fixing?
i am even don't remember what i did because week was pass. worst feedback for free work.
i spend my time, make solution, even send you notification, and u silently take it without single word and now, after several day u return and ask for fixing?
i am even don't remember what i did because week was pass. worst feedback for free work.
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
-
- Joomla! Enthusiast
- Posts: 209
- Joined: Thu Oct 01, 2015 7:52 pm
Re: Insert non-breakable spaces into text (vlna)
I don't understand why there is a wigging. I was urged to react by a PM. So, I followed the instructions, thanked for the effort and gave a feedback. Is it a delay in my response(s), which is a decisive factor, please? How could I take it loudly?
For the time being I solved it by changing the regex to
and running it twice.
Thank you, effrit, for the support. That helped me a lot.
For the time being I solved it by changing the regex to
Code: Select all
const regex = /(( |\s)[A-Za-z0-9])\s(?![\s])/gm;
Thank you, effrit, for the support. That helped me a lot.
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Insert non-breakable spaces into text (vlna)
Man, this is single plugin for single person!
This is so specific, so nobody else will ask about, and i will not put in on JED because of it.
And this only person don't even bother to write "thank you, i will test it later."
You just absolutely ruined my motivation for helping and asking about what's wrong with it? ALL WRONG.
This is so specific, so nobody else will ask about, and i will not put in on JED because of it.
And this only person don't even bother to write "thank you, i will test it later."
You just absolutely ruined my motivation for helping and asking about what's wrong with it? ALL WRONG.
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
-
- Joomla! Enthusiast
- Posts: 209
- Joined: Thu Oct 01, 2015 7:52 pm
Re: Insert non-breakable spaces into text (vlna)
Flames detected and I will have to ignore them in the next message, please.
I'm sorry for your disappointment, dear effrit. I see that I could be more polite. But in the same personal situation I have been over the last days and seeing your request for urgency to download (due to expiration date, link is still valid), I would not and most probably could not act differently. I apologised for the delay, thanked for the support and gave feedback which has been awaited as well.
I'm sorry for your disappointment, dear effrit. I see that I could be more polite. But in the same personal situation I have been over the last days and seeing your request for urgency to download (due to expiration date, link is still valid), I would not and most probably could not act differently. I apologised for the delay, thanked for the support and gave feedback which has been awaited as well.
- effrit
- Joomla! Guru
- Posts: 846
- Joined: Sun Nov 12, 2017 2:21 pm
- Location: middle of Russia
- Contact:
Re: Insert non-breakable spaces into text (vlna)
Omg. So u tell u cant spend about 10-20 SECONDS to post answer even if u already was on forum?
And u definitely NOT been in same situation where you do something for person and take silence in return.
Try make something to peoples who ask for help and ignore you after you take the action and then u will understand how i feel and why i am angry now.
And u definitely NOT been in same situation where you do something for person and take silence in return.
Try make something to peoples who ask for help and ignore you after you take the action and then u will understand how i feel and why i am angry now.
http://effrit.com/joomla | clean Word/Excel tables: http://r91228pz.bget.ru
-
- Joomla! Enthusiast
- Posts: 209
- Joined: Thu Oct 01, 2015 7:52 pm
Re: Insert non-breakable spaces into text (vlna)
After some time, I was able to modify the plugin to my needs and support attaching strings together by nbsp and process prepositions and units as well. So, I'm giving it back modified to the community.
Examples of phrases, which can be made non-breakable using the attached settings: u vlny, k lesu, 7×18 m = 126 m, 20 W/m, 4 Kč, 1 000 Kč.
Examples of phrases, which can be made non-breakable using the attached settings: u vlny, k lesu, 7×18 m = 126 m, 20 W/m, 4 Kč, 1 000 Kč.
- download plugin to add NBS https://drive.google.com/open?id=19n342 ... tOmo2Grc38
- download plugin to remove NBS https://drive.google.com/open?id=1S6ddb ... bdfXAGIulz
You do not have the required permissions to view the files attached to this post.