58 questions
1
vote
1
answer
176
views
How to highlight selected text in a rich text editor when the selection spans multiple HTML tags?
I'm implementing text highlighting functionality in a custom text editor using vanilla javascript, similar to how MS Word highlights text. The issue I'm encountering is that when a user selects text ...
0
votes
0
answers
67
views
How to Export an RTF File from a Custom Editor Built with Vanilla JavaScript?
I am building a custom text editor using vanilla JavaScript, and I need to implement functionality to export the content from the editor into an RTF (Rich Text Format) file.
The basic structure of my ...
0
votes
1
answer
178
views
How to apply style changes (such as bold, Italic, color, adding bullets, etc) inside a JTable in Java?
I implement a mini word processor using JTextPane in Java. I created a tool bar that makes me be able to bold, underline, and color the texts which the users can input.
Now I insert a JTable into this ...
0
votes
1
answer
306
views
How to generate list of words in Libreoffice calc
Basically I need to populate a column with created new words in this format (??P??P) or (??K??K), "?" is wildcard. If possible I would want the 2nd and 5th letters to be vowels. I also want ...
0
votes
0
answers
100
views
How to implement a zooming function with header and footer support in PagesTextEdit forked by dimkanovikov on github?
I am now currently working on a MS Word clone with Python 3 and want some effect with pagination support. I saw some implementations in https://forum.qt.io/topic/847/paginating-a-qtextedit/2, and I ...
0
votes
1
answer
122
views
How do I convert a Google Doc for alternate cloud storage, with revision history intact, to a openable document in Dropbox
Is there a way to do this easily? Keep version history of the document on the document? As a .gdoc or .whatever-format or am I resigned in having to download, separately, all the revisions made in the ...
0
votes
0
answers
54
views
How to set the style of inputted text to that which immediately follows the cursor position in a JTextPane
I'm working on a database program where the GUI has multiple input areas, some of which are JTextPanes where the user can set Bold, Underline, and Italic styles on their text. When the user places ...
-1
votes
1
answer
209
views
Count the occurrences of every word in C
I want to count the occurrences of every word of this small text " A broken heart of a broken mind ."
Every word of this text is in 2d array[100][20] in which 100 is the max_words and 20 is ...
2
votes
1
answer
66
views
Is there a Word processing software built for inline annotations, references and line count?
I think this is a tall order for Libreoffice, my regular processor. The goal is a column of narrative with annotations in one margin when needed and references on the other. The appearance of 5, 10, ...
0
votes
1
answer
89
views
How to write an algorithm that receives characters one by one and displays them in the form of book with pages?
My code currently receives characters of a book one by one and preprocesses it so that it displays it in the form of:
I went to thelibrary to pick upmy favoritebaseball hat
instead of
I went to ...
0
votes
3
answers
624
views
How to make a word processor in Arduino (C/C++) where the text is coming character by character?
I'm using the Adafruit_ST7735 (with the Adafruit_GFX) library to display stuff on my 1.8 TFT display. When I set the tft.setTextWrap(false); it does wrap the text but it doesn't care about words. For ...
0
votes
0
answers
57
views
How does computer interpret/understand or recognize a particular letter even if its written in different typefaces?
I expect the answer to be with respect to word processor or web browser. I am aware that ms-word has digital files, but am not able to connect the dots on how does a computer understands the glyphicon ...
2
votes
1
answer
1k
views
how to restore a splitted word by removing the hyphen "-" because of hyphenation in a paragraph using python
simple example: func-tional --> functional
The story is that I got a Microsoft Word document, which is converted from PDF format, and some words remain hyphenated (such as func-tional, broken because ...
0
votes
1
answer
7k
views
Determine if a file contains a string in C
How can I check if a given FILE* contains a string in C running on Linux (if it matters)?
The string must consist of the whole line it's on. For example, this:
jfjfkjj
string
jfjkfjk
would be true; ...
0
votes
0
answers
141
views
How to get copy and paste-able tables accross browsers for export to word-processors?
When I copy and paste a table styled with CSS from a browser to a word processor I get very different results: Firefox neglects CSS styles, Chrome copies only the content of the table, and Safari ...
0
votes
0
answers
58
views
is there any way to display contents of .docx files as selected by a visitor on my django webapp?
i am creating a web application using django and i want to display the contents of docx files , edit those files and save it back to the local device.
Is django capable of doing this.
0
votes
1
answer
58
views
parsing user input into predefined json format
I'm building a workout app and I've been wrestling with how to enable users to define their exercises. I want to avoid multiple text fields of input and i was hoping to allow users to enter the whole ...
0
votes
1
answer
210
views
How to properly use StyledEditorKit for aligning text
Basically, what I want to do is to center text that I've selected with my mouse (through normal left click, drag over the words, they turn blue. No special highlighting functions or anything like that....
1
vote
1
answer
220
views
Getting my Word Processor GUI to Open a File
I am trying to make a simple word processor that has an open, save, and delete button. So far I have gotten the save button to work! My open button, on the other hand, will not open a file. Whenever I ...
-1
votes
1
answer
75
views
An automatic file history and backup for a word processor
I'm currently making a word processor in Java and one the functions it should have is a file backup and history.
I want to be able to backup text to a text file if the program crashes and display a ...
0
votes
1
answer
95
views
word processor document - file format compatible with rails
I'd like to write my terms and conditions using a word processor, save it and easily embed the file in my Rails application. Nothing fancy, just have paragraphs, and bold (and regular) fonts. Which is ...
0
votes
2
answers
1k
views
Does an Indesign syntax highlighter exist?
Does anybody know of a non-manual method of highlighting syntax when pasted in InDesign?
I'm trying to show code of a project in an InDesign documentation but don't want to have to manually highlight ...
1
vote
1
answer
586
views
Export Multiple PDFs in Libre Office for Sections
I am looking for a way to split a book I am writing into multiple PDFs on export, automatically, using Libre Office / Open Office. I'd like a PDF for each chapter separately, as I am posting this as I ...
3
votes
1
answer
613
views
How to detect if a file has changed?
I'm trying to write a word-processor program for processing huge files. Now whenever the user closes a file, I would prompt them "Do you want to save the file" if the file has been modified.
I'm ...
0
votes
2
answers
559
views
iphone sdk : Break chinese sentence into words and letters
I have Chinese news feed and I want to break the sentence into smaller chunks to pass to the API.
How can I do it in ios? I have set character length of 50 characters for English language.
...
0
votes
1
answer
32
views
text formatting according to indentation
Hi can someone help me understand how the stackoverflow question's code area works(technically).
I mean the way it formats the text as it indent the text.
example: without indentation
example: ...
0
votes
1
answer
585
views
Problems with filemanager in C#
What do I need to write to get this to work?
If the current text in the text window is not saved (or is unchanged since it was opened) and you try to close, open or create a new file, the user ...
0
votes
1
answer
92
views
Find the "Greatest Common Div" of user selection
Hello all you ridiculously genius people!
So I'm creating a basic word processor, and I need to have an option to clear formatting in a certain section. The place the user is typing is split up into ...
-1
votes
2
answers
90
views
Making HTML recognize user input tags
Hey all you awesome smart people,
I need some help with user input. I am creating a basic word processor, and I need to make a certain selected area bold. The user will highlight the area with the ...
1
vote
1
answer
510
views
Retrieve TextTable from TextTableCursor with LibreOffice 4.1 Writer Basic
I would like to write a macro that works on the selected table.
Selection in a table
When I select a table, the object that ThisComponent.CurrentSelection returns is of type SwXTextTableCursor. I ...
5
votes
3
answers
5k
views
LibreOffice 4.1 Writer: macro to adjust column widths in tables
I am working on some LibreOffice macros that work on tables, in particular to set the width and height of each column and row to 0.85 cm (0.335 in).
In MS Office, this is easy, just select the table ...
0
votes
1
answer
102
views
What are some of good text-based web editors/processors out there?
I'm looking for a web-based text editor where a user can "track changes" and edit small portions of text that I can put on a commercial website that its users can use. The user should be able to ...
2
votes
1
answer
2k
views
Non-breaking hyphen longer than regular
I'm working on an application that uses Adobe's Text Layout Framework to handle word processing. I've run into an issue where inserting a non-breaking hyphen (U+2011) is rendered about twice as long ...
6
votes
1
answer
3k
views
How to read font size of each word in a word document using POI?
I am trying to find out whether there exist anything in the word document that has a font of 2. However, I have not been able to do this. To begin with, I've tried to read the font of each word in a ...
0
votes
2
answers
2k
views
Simulate MS Word functionality in ASP.NET MVC
I need to implement a document editor similar to Google Docs or Microsoft Sky Drive (with the possibility to have N pages, page settings, export to word...). A great component would be this one: http:/...
0
votes
1
answer
852
views
WordprocessingDocument separates text (unnecessarily)
I am trying to replace certain places in my word document, which acts as a template. These places are marked as words starting with @. For example @Name. I select all the texts, run through them with ...
0
votes
2
answers
403
views
Finding variants of a string (only deletion, no transposition)
Given a string, I want to find all variants without transposition, only deletion. For example, given the string:
helloo
The list of variants would be as follows (separated by white space).
helloo ...
0
votes
0
answers
340
views
Is there an ASP.NET word processing control?
Is there a full-blown ASP.NET word processing control? One that runs in every (main) browser, and includes support for page margins, page & section breaks, fields, etc?
TextControl has the ...
0
votes
4
answers
258
views
Adjust top while maintaining bottom position with CSS
A website I'm working on now is meant to replicate a document that you could print. There is a header, a body, and a footer. All three elements use CSS to adjust the margins and height of each one.
...
4
votes
5
answers
4k
views
What's a better way to store text for a word processor?
The usual way is to store the characters in a string, but because while writing a text, a lot of times the user deletes or adds characters in the middle of the text, perhaps it is better to use std::...
2
votes
2
answers
6k
views
How to make a Batch File edit a text file how a user wants while displaying what is being edited?
I am currently creating a word processing software with batch files. I was wondering if anyone knew how to display the text on the screen, so that the user can edit it. I already have a system for ...
8
votes
0
answers
1k
views
high performance data structure for large amounts of data [closed]
I am working on the .NET version of a "word processor" control for large documents - large meaning up to 10000 pages when printed.
I have implemented the functionality with Win32 a few years ago ...
0
votes
1
answer
448
views
Displaying, selecting and editing text on UserControl
I'm in the process of writing a small text-editor that is supposed to have very basic formatting capabilities, nothing fancy, yet more complex than what RichTextBox can provide (including a 'page' ...
-1
votes
2
answers
503
views
Word Processor for Mac with the clean HTML output? [closed]
I need spell checking and only basic formatting (like the stack overflow editor). It would also be nice if you could switch to HTML editing and also paste formatted text into it and it will convert to ...
1
vote
1
answer
476
views
Refreshing the richtextbox and clearing if of the back color so it displays a new white page
I have a rtbDoc(simple word app)that you can change the back color using the colorDialog,
it does not change the color back to white if you load a new doc, so the color you picked stays the same, how ...
3
votes
1
answer
2k
views
WYSIWYG editor in jsp [closed]
I need help finding a WYSIWYG editor to use in the web application I'm developing.
The boss wants to reach a word-like usability, where you can set header/footer for the pages, see actually what the ...
0
votes
1
answer
2k
views
Error when loading a Word 97-2003 .dot to Word 2010
I'm trying to load a custom Word 97-2003 (.dot) template in Word 2010. It loads fine into a new document when double-clicking it, but when I try to add it to an existing document under Templates and ...
0
votes
1
answer
268
views
Wordlike Input screen in website (docs.google or hotmail) javascript php
I believe the title already says it all, but here is my question:
what I want to know is how to realize a Office Wordlike "piece of paper" inputscreen.
I want to build a some kind of "newsletter ...
0
votes
1
answer
459
views
Embedded WordprocessingDocument into SpreadsheetDocument with Open XML?
How can this be done? Let me know if you all have solutions.
Embedded WordprocessingDocument into SpreadsheetDocument with Open XML
0
votes
1
answer
668
views
Word Processor in Silverlight?
Are there any free & decent word processors in Silverlight 4? Would this be feasible in Silverlight?
Also, are there any free libraries for reading PDF/DOCX in Silverlight?