Word one word per line

Nathan’s answer using table-caption is almost correct but misses out a key issue in that the sentence is only actually split by the longest word resulting in grouping of shorter words.

For example the following sentence:

This trick groups and splits words in a sentence based on the longest word.

actually result in the following output. Note the grouping on in a and on the in the output.

This 
trick 
groups 
and 
splits 
words 
in a 
sentence 
based 
on the 
longest 
word.

You can actually do it very easily by setting the word-spacing which has excellent support.

Using that you can output the sentence correctly as follows:

This 
trick 
groups 
and 
splits 
words 
in 
a 
sentence 
based 
on 
the 
longest 
word.

Here’s a working code example you can run.

Snippet

p {
  word-spacing: 9999rem;
}
p ~ p {
  /* Undo last assignment */
  word-spacing: unset;
  display: table-caption;
}
<h3>word-spacing</h3>
<p>
  This trick splits each word in a sentence
</p>
<hr/>
<h3>table-caption</h3>
<p>
  This trick groups and splits words in a sentence based on the longest word.
</p>

Bob Kupferer


  • #1

I downloaded a dictionary. The words are one per line so
the line breaks are after each word, (I assume?). It is a
long list. I’m trying to print it and save paper, but I
can’t seem to get the words to wrap and I can’t go through
and delete the breaks after every word. All I’ve gotten
so far is columns, but I think I could save twice the
space if I had only a single space between each word on a
line rather than columns.

Also, I could save a lot more space by deleting the 2-4
letter words because I have them in separate files. This
probably seems an impossible task to search for and find
all these those.

Thank you for any help,
Bob Kupferer

Advertisements

Andrew Savikas


  • #2

Have you tried using Table -> Convert -> Text to table?
Specifying 4 columns (or more if possible) should squeeze
things up nicely.

Alternately, you could do a wildcard search, using ^p in
the «Find What» box, replacing with » » (that’s a
couple spaces; you wouldn’t actually type the quotes).
That would replace any linebreak with a few spaces.

If you really wanted to delete 2-4 letter words, another
wildcard search, with [! ]{2,4} in the Find What box,
replaced with nothing would do the trick (notice the space
after the exclamantion mark and before the bracket, and
that those are braces around the 2 and 4)

HTH

Andrew Savikas

Advertisements

Suzanne S. Barnhill


  • #3

You could replace ^p with a space.


Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Want to reply to this thread or ask your own question?

You’ll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.


Ask a Question

You must have learned how to adjust character spacing in our previous post, but when you are editing a document with exact specifications, it is necessary to limit the characters per line and lines per page as well. On the other hand, it can also limit the characters for the whole document. Just follow the steps below and let’s find out how to achieve it.

First, go to Layout tab, click the arrow at the right bottom in Page Setup group.

How to Limit the Characters Per Line in Microsoft Word

A Page Setup dialog box will display, go to Document Grid tab, and check the box of Specify line and character grid. You could specify the value under Characters to limit the characters per line and modify the value under Lines to limit the lines per page. Also, you are able to set it applies to Whole document or This point forward by selecting option in the drop-down box. Simply click OK and you are done.

How to Limit the Characters Per Line in Microsoft Word

Copyright Statement: Regarding all of the posts by this website, any copy or use shall get the written permission or authorization from Myofficetricks.

I have text file with a lot of text in it, and I would like to sort every word one below other how can I do that. For ex.

cat PDF | less
word one, word two. Word three ?

I need them to be

word
one
word
two
Word
three

Gilles 'SO- stop being evil''s user avatar

asked Feb 5, 2017 at 2:26

Slobodan Vidovic's user avatar

This isn’t really what I would call sorting.

You could either squeeze and transliterate all non-alphabetic sequences into newlines

tr -sc '[:alpha:]' '[n*]' < PDF

or (at least with GNU grep) match and output sequences of word characters (alpha, decimal digits and underscore), one per line using the -o option

grep -o 'w*' PDF

Stéphane Chazelas's user avatar

answered Feb 5, 2017 at 2:35

steeldriver's user avatar

steeldriversteeldriver

76.5k11 gold badges104 silver badges145 bronze badges

ePrivacy and GPDR Cookie Consent by Cookie Consent

Top download

  • Link to us
  • Tell-a-friend
  • Contact

Search Download:

  • Top 4 download
  • >>

  • System Utilities
  • >>

  • Text / Document Editors
  • >>

  • One Word Per Line Converter Software

One Word Per Line Converter Software 7.0

One Word Per Line Converter Software Full Download Summary

User Rating: 3.3 (4 votes)

  • Currently 3.25/5
  • 1
  • 2
  • 3
  • 4
  • 5
  • File size: 2.67 MB
  • Platform: Windows XP, Windows Vista, Windows Vista x64, Windows 7 x32, Windows 7 x64, Win2000, WinOther, Windows 2000, Windows 2003, Windows 8
  • License: Free To Try
  • Price: $19.99
  • Downloads: Total: 126 | This Month: 0
  • Released: Jul 22, 2014
  • Publisher: Sobolsoft
  • Publisher URL: http://www.sobolsoft.com/

  • Add a review
  • Send to a friend
  • Report broken link
  • Report spyware

One Word Per Line Converter Software 7.0 Full Description

This software offers a solution to users who want to split words into separate lines. The user can type, paste or load the text from a file before starting the splitting. There is also a feature to convert multiple text files.

One Word Per Line Converter Software 7.0 Screenshot

  • screenshot

free download

One Word Per Line Converter Software 7.0 Bookmark

Hyperlink and Intro code:

Hyperlink for Forum code:

One Word Per Line Converter Software 7.0 Free Download Notice

Top 4 Download periodically updates software information of One Word Per Line Converter Software 7.0 full version from the publisher,
but some information may be slightly out-of-date.

Using warez version, crack, warez passwords, patches, serial numbers, registration codes, key generator, pirate key, keymaker or keygen for
One Word Per Line Converter Software 7.0 license key is illegal and prevent future development of
One Word Per Line Converter Software 7.0. Download links are directly from our mirrors or publisher’s website,
One Word Per Line Converter Software 7.0 torrent files or shared files from free file sharing and free upload services,
including Rapidshare, HellShare, HotFile, FileServe, MegaUpload, YouSendIt, SendSpace, DepositFiles, Letitbit, MailBigFile, DropSend, MediaMax, LeapFile, zUpload, MyOtherDrive, DivShare or
MediaFire,
are not allowed!

Your computer will be at risk getting infected with spyware, adware, viruses, worms, trojan horses, dialers, etc
while you are searching and browsing these illegal sites which distribute a so called keygen, key generator, pirate key, serial number, warez full version or crack for
One Word Per Line Converter Software 7.0 download. These infections might corrupt your computer installation or breach your privacy.
A keygen or key generator might contain a trojan horse opening a backdoor on your computer.
Hackers can use this backdoor to take control of your computer, copy data from your computer or to use your computer to distribute viruses and spam to other people.

One Word Per Line Converter Software 7.0 — Post Your Review

Понравилась статья? Поделить с друзьями:
  • Word on the street inspectah deck
  • Word one page template
  • Word on the street has it
  • Word one page on screen
  • Word on the street games