Ask Your Question
0

Can we change the text vrom left to right automatically to up to down ?

asked 2015-11-19 18:54:21 +0200

Nemzag gravatar image

updated 2015-11-19 19:09:14 +0200

Hi, I would like to know if there is any way or function to change a text like this :

ABC CBD DSS DSQ JHI POH XHZ HOX HSG (Left to right...)

Automatically to this :

ABC

CBD

DSS

DSQ

JHI

POH

XHZ

HOX

HSG

(Up to down... Space converted to jump paragraph... You "ask.libreoffice.org" "editor" have a problem and we need to use a space {enter} between terms...)

Please I need it, if we can't can you please add this feature fast please (with possibilty to choose no space {enter} or one or two between vertical terms)...

Tʰang 帑 كتأنجى you very chum... Good day...

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2015-11-19 19:26:28 +0200

karolus gravatar image

updated 2015-11-20 05:12:10 +0200

Hallo

→Edit→Search&replace
→search: \w+
→replace: $0\n
→→more Options [x]regular Expression
→→replace all

@Nemzag (Comment):
Youre free to record the Steps above ( →Tools→Macros→record_Macro )* and bind the recorded Routine to some shortcut, Button or Menuentry

*Maybe you need first to enable recording macros via →Tools→Options→LO→[extendet|advanced]?

edit flag offensive delete link more

Comments

Tʰang 帑 كتأنجى you, but it would be cool that this function to be added directly in Write automatically... Good day...

Nemzag gravatar imageNemzag ( 2015-11-20 01:16:58 +0200 )edit

No, that would not be cool ( if the Devs would implement any cool idea of any user, nobody would be able to work with the huge mess ) But, see edited Answer...

karolus gravatar imagekarolus ( 2015-11-20 04:59:08 +0200 )edit
1

Hi @karolus - Are there any reason not to search \W+ replace by \n ?

pierre-yves samyn gravatar imagepierre-yves samyn ( 2015-11-20 08:37:41 +0200 )edit

@pierre-yves samyn - of course your suggestion is also valid, as some other expressions, maybe yours is slightly better because \W+ matches on any whitespace including other split word-characters like ,.;:()..

karolus gravatar imagekarolus ( 2015-11-20 10:09:04 +0200 )edit

@karolus - Ok, thank you for your answer, I wondered if there was a scenario I do not see ...

pierre-yves samyn gravatar imagepierre-yves samyn ( 2015-11-20 10:28:42 +0200 )edit
0

answered 2015-11-20 14:25:16 +0200

Nemzag gravatar image

updated 2015-11-21 11:59:52 +0200

I Karolus Yinq, here is Clarifiqsu Vêšêlo Bashshallênë Shalovuniqa Yang...

I tested your "function" and is not working well, the command even divide term using an non-breaking hyphen / minus (U+2011)... And also the punctuation is separated & parentheses to and vor me it is not practical...

Example :

ÉGÔ

VIØXË DËDË‑MAND‑ÉRË MÊNΘA‑ALÉ‑ISË À ALÉHI.

"QWË VEUT TI DË MOI ???"...

ET ALORS ETRANGËMÊNΘË.

ET SHUPRË‑PRÊNA‑MÊNΘË (surprêë‑nament)!

ADË‑PARUË CECI!!!

KÊTTË CASË… (U+2026)

"WÊDDË‑JANGË" ۋادديأنجى

That become :

ÉGÔ

VIØXË

DËDË

‑MAND

‑ÉRË

MÊNΘA

‑ALÉ

‑ISË

À

ALÉHI

.

"QWË

VEUT

TI

MOI

???"...

ET

ALORS

ETRANGËMÊNΘË

.

ET

SHUPRË

‑PRÊNA

‑MÊNΘË

(surprêë

‑nament

)!

ADË

‑PARUË

CECI

!!!

KÊTTË

CASË

… (U

+2026

)

"WÊDDË

‑JANGË

" ۋادديأنجى

The result is not quite good how to improve the function to avoid division of Non-breaking hyphen, punctuation (! , ; . … ... ? ) & parenthesis ?

I still asking and I insist that this function to be added in Paragraph, like Microsoft Office Excel : alignment / orientation... It would be very useful than using a complicated equation, that I have difficult to remember since I have memory problems...

Tʰang 帑 كتأنجى you vor ħêlph حلف.

edit flag offensive delete link more

Comments

Ok -- try with:
search ( |\t)+
replace \n

karolus gravatar imagekarolus ( 2015-11-20 15:40:46 +0200 )edit

"... that this function to be added in Paragraph, like Microsoft Office Excel : alignment / orientation..."

I cannot understand how Excel comes in.

Lupp gravatar imageLupp ( 2015-11-20 22:02:38 +0200 )edit

Tʰang 帑 كتأنجى, Lupp, I cite Excel as an example... Nothing difficult to comprehend... Good day.

Nemzag gravatar imageNemzag ( 2015-11-20 22:17:43 +0200 )edit

@Nemzag : You tagged this thread 'Writer' which is the text processor module of LibreOffice. Your examples are text, and not just a cell's content, I hope. Excel is a spreadsheet application as comparable to 'Calc'. No feature as you are talking of can work the same way in a spreadsheet and in a text document. This should actually not be difficult to comprehend. You may "insist" on whatever you want. It will not work.if it is basically inconsistnt. Over.

Lupp gravatar imageLupp ( 2015-11-21 12:45:47 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-11-19 18:54:21 +0200

Seen: 107 times

Last updated: Nov 21 '15