Witam czy móglby ktos z poniższego tekstu wyszukac dla mnie informacje jak ustawic w linijce okreslona ilosc znakow?(tak zeby automatycznie np 60 znakow w linijce dawał) Bede bardzo wdzieczny poniewaz nie znam sie na angielskim.... bardzo proszę.
Author Message
wahur
Power User
Power User
Joined: 22 Sep 2004
Posts: 63
Location: Tallinn, Estonia
PostPosted: Sun Aug 12, 2007 9:59 am Post subject: Fixed-width lines - is it possible? Reply with quote
Hi!
I need to produce fair amount of text so that line length does not exceed 36 characters. Is it somehow possible to create a template for that? I was not able to find any such control.
Wahur
Back to top
View user's profile Send private message
Bhikkhu Pesala
Super User
Super User
Joined: 23 Aug 2005
Posts: 2324
Location: Seven Kings, London, UK
PostPosted: Sun Aug 12, 2007 10:13 am Post subject: Reply with quote
Just use a fixed pitched font like Courier and set the margins to suit.
_________________
Fonts * Opera * Oo Tips * FAQ * New Forum
Oo 2.3.1 * Win XP
Back to top
View user's profile Send private message Visit poster's website
foxcole
Super User
Super User
Joined: 19 Jan 2006
Posts: 2773
Location: Minneapolis, Minnesota
PostPosted: Sun Aug 12, 2007 12:39 pm Post subject: Re: Fixed-width lines - is it possible? Reply with quote
wahur wrote:
I need to produce fair amount of text so that line length does not exceed 36 characters. Is it somehow possible to create a template for that? I was not able to find any such control.
To expand on Bhikkhu's reply, the width of a line of 36 characters varies tremendously by the selected font and by point size... so text width is designed to fit a dimensional area on a page or screen, and you're unlikely to find anything to easily control number of characters per line, even in a publishing program such as Scribus.
A fixed-width font such as Courier makes calculating the width of such text easier, but the text is still bound by page margins, or by column, frame, or table cell width---by dimensional specifications, in other words---so you're still going to have to calculate whatever boundary you select. The only way I can think of to do what you want is to create a macro or script that counts the number of keystrokes and forces a new line after 36... but I'm not the one to help write it, sorry.
If I may ask, what exactly are you trying to accomplish? Perhaps there's a different approach that might work for you...
_________________
Joined: 22 Sep 2004
Posts: 63
Location: Tallinn, Estonia
PostPosted: Sun Aug 12, 2007 1:35 pm Post subject: Reply with quote
Subtitles translation.
No, its not fansubbing stuff, but for a film festival. Films will be shown from, well, film, not dvd, so fansubbing soft is of no use. I will need to produce subs in a text file, 2*36 char per subtitle. I know that some linux editors (like kate) allow making such templates, but this time I am working in Win and I would prefer to stick to tools I already have, i.e. OOo, if possible.
In fact, such macro would be cool, cause I am afraid that ifever I manage to produce such file, editor will open it in a different program and this "other" program might not recognize such line limit. Best compatibility guarantee would be to end every line with hard return, but not before all subs are ready.
Back to top
View user's profile Send private message
floris_v
Super User
Super User
Joined: 12 Jul 2007
Posts: 1504
Location: Netherlands
PostPosted: Sun Aug 12, 2007 2:04 pm Post subject: Reply with quote
That's clear. I suggest that you follow Bhikkhu Pesala's advice. Set the font to Courier - or another fixed width font, type 1234567890 three times and 12345 6 once, in a row. Now set the margins so that the last letter moves to a new line. Now you know that it won't accept lines longer than 36 characters. Now enter your text and press Enter after every line (you'll have to do that in the end, so why not at once?).
_________________
Joined: 19 Jan 2006
Posts: 2773
Location: Minneapolis, Minnesota
PostPosted: Sun Aug 12, 2007 2:16 pm Post subject: Reply with quote
wahur wrote:
In fact, such macro would be cool, cause I am afraid that ifever I manage to produce such file, editor will open it in a different program and this "other" program might not recognize such line limit. Best compatibility guarantee would be to end every line with hard return, but not before all subs are ready.
Sounds like a fascinating project.
You might want to go to the OOoForum.org forum index and find the Macros and API forum. Very likely someone there will be more that willing to help with this. (And, if you do find a solution, perhaps you could post it here...)
Good luck! Very Happy Very Happy Very Happy
__
Joined: 07 Mar 2003
Posts: 7088
Location: Kentucky, USA
PostPosted: Sun Aug 12, 2007 5:47 pm Post subject: Reply with quote
Quote:
That's clear. I suggest that you follow Bhikkhu Pesala's advice. Set the font to Courier - or another fixed width font, type 1234567890 three times and 12345 6 once, in a row. Now set the margins so that the last letter moves to a new line. Now you know that it won't accept lines longer than 36 characters. Now enter your text and press Enter after every line (you'll have to do that in the end, so why not at once?)
If you take this approach you don't have to worry about the Enter at the end of each line. The following macro will do the job for you when your ready.
Back to top
View user's profile Send private message
foxcole
Super User
Super User
Joined: 19 Jan 2006
Posts: 2773
Location: Minneapolis, Minnesota
PostPosted: Tue Aug 14, 2007 7:49 am Post subject: Reply with quote
I just had another thought... you could use a single-line form textbox and limit it to 36 characters. If you want to keep it very simple, you can just copy and paste the text from there; otherwise, you could set it up so the
PostPosted: Tue Aug 14, 2007 7:58 am Post subject: Reply with quote
I'm sure the other solutions offered here are more useful, but the first thing that came to mind for me was to use an email client. Set it to plain text, wrap at 36 characters. It would be very limiting with regards to formatting though.
Back to top
View user's profile Send private message
foxcole
Super User
Super User
Joined: 19 Jan 2006
Posts: 2773
Location: Minneapolis, Minnesota
PostPosted: Wed Aug 15, 2007 6:30 am Post subject: Reply with quote
In case it's useful to anyone, here's a freeware subtitle editor that looks like it covers all the bases, including Wahur's requirements (this will do fansubbing but it will also not do fansubbing):
URUSoft Subtitle Workshop
_________________
Nie znaleźli rozwiązania.
Zaproponowali tylko półśrodki. Jeden z nich - chyba najsensowniejszy:
Wybierasz czcionkę Courier(o stałej szerokości), ustawiasz marginesy tak, aby w linijce mieściło się tylko 36 znaków. Za każdym razem gdy literka przejdzie do następnej linijki, będzie to znaczyło, że już jest więcej niż 36 znaków, wtedy kasujesz ostatnią wciskasz enter i piszesz dalej. Dzięki temu masz w każdej linijce po 36 znaków.
Ja osobiście polecam Ci edytor Notepad++, gdzie w prawym dolnym polu masz napisane w której jesteś linijce i wierszu, dzięki temu możesz bez liczenia ustawić kursor w odpowiedniej literce i podzielić tekst jak tylko chcesz.
Forum językowe e-ANG.pl to miejsce na dyskusje, zadawanie pytań oraz platforma wymiany wiedzy o języku angielskim. Zachęcamy do zapoznania się z zagadnieniami gramatycznymi oraz systemem nauki słówek angielskich udostępnionym bezpłatnie na e-ANG.pl