Abiword weird behavior and bugs

I think the real issue is that you are expecting behaviour like Microsoft apps not realising that you are using Linux. Linux is not Windows: https://linux.oneandoneis2.org/LNW.htm

Also, WordPad didn’t save a standard .txt format even though it may look like it did. It did exactly what Inkscape does. It saves files with the standard file name but it adds a little code so that when reopened, you can still see all your layers organised the way you want.

Not all apps do this.


image


PS: The first sentence and the link above is not to scold/bash you. It is to help you set proper expectations. Read it when you have the time.

Ok, valid points everyone, I understand all that.
(although it still doesn’t explain why it worked for a while with .txt)

Then please please :pleading_face: :pleading_face: tell me there is an option somewhere I can edit to make it so when I use the context menu to right click>create text file in file managers such as Double Commander(specially this one) or Dolphin that file is automatically created as a .abw file instead of .txt.
Because I seriously don’t want to have to open the start menu and launch abi from there and go through all that every time I wanna create a text file, and it doesn’t seem to work if I right click>create and just rename it to .abw. :frowning:

You could try krunner (if on kde) or even quicker set up a shortcut to launch it.

You need a template.

username/Templates/abiword_template.abw

Create a file in there and you should be all set.

Just tested it — works immediately. No need to close your file manager, refresh your cache, log out, restart, or anything.

EDIT: LIES! You will need to reopen Dolphin. I tested it in Nemo. Didn’t need to reopen it. :sweat_smile:
EDIT 2: Even more lies! Even after reopening Dolphin, it doesn’t work. In fact, Dolphin doesn’t show any of my Templates. Maybe Dolphin only sees templates from some specific Dolphin Templates folder?
EDIT 3: Found it! username/local/share/templates

2 Likes

Oh yeah, forgot about krunner. Not ideal, but if it’s not possible to replace the context menu choice then I guess krunner would be better then nothing. Thanks.

Ok, looool, while you figure out all the lies I’m gonna go google what templates are and how they work in linux cause I don’t even know what you are talking about. :wink:

I’ve figured it out, I think. But you can do your search all the same.

* Open Dolphin
* Navigate to /local/share/templates → You may need to create this folder.
* Right-click and select “Create New”
* Select “Empty file…”
* Name it something like “abiword_temp.abw”

Now you should be able to create templates in that format.

Scratch all of that…

Here are the instructions (from AI obviously):

Dolphin Templates Folder KDE

According to the search results, Dolphin, the file manager in KDE, does not directly use the ~/Templates folder. Instead, it has its own template system and folder structure.

Key Points:

  1. Dolphin’s Template Folder: The template files are located in /usr/share/templates/ and ~/.local/share/templates/. These folders contain .desktop files that describe the templates and .source subfolders with the actual template files.
  2. Adding Custom Templates: To add your own custom templates, you need to create a .desktop file in ~/.local/share/templates/ and a corresponding template file in ~/.local/share/templates/.source/.
  3. No Direct Support for ~/Templates Folder: Dolphin does not directly support the ~/Templates folder, which is used by some GNOME file managers like Nautilus.
  4. Add-ons and Services: There are add-ons and services available for Dolphin that can provide template functionality, such as the “Templates” service found in Dolphin’s settings.

Example: To create a custom template for a Freeplane file, you would:

  1. Create a file named FreeplaneFile.desktop in ~/.local/share/templates/ with the following content:
[Desktop Entry]
Type=Template
Name=Freeplane File
Comment=Create a new Freeplane file
Exec=kf5-freeplane --new
 
  1. Place an empty Freeplane file named freeplane.mm in ~/.local/share/templates/.source/.

Conclusion: While Dolphin does not directly support the ~/Templates folder, you can still customize its template system by creating your own .desktop files and template files in the designated folders. Additionally, there are add-ons and services available to enhance Dolphin’s template functionality.

https://wiki.archlinux.org/title/AbiWord#Templates

1 Like

Yes, this is very useful for the actual file name. However, it won’t help with the Dolphin part. Still won’t be able to right-click.

Nemo is actually better in this regard. Or at least, WAY simpler.

1 Like

Ok, thank you everyone I am gonna check out and try to figure out how to adapt all that for Double Commander(that is my main file manager) tomorrow. Now it’s time for a movie then bed. Good night all.

2 Likes

Abiword works fine here, typed text, applied format, worked.

This is the raw file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE abiword PUBLIC "-//ABISOURCE//DTD AWML 1.0 Strict//EN" "http://www.abisource.com/awml.dtd">
<abiword template="false" xmlns:ct="http://www.abisource.com/changetracking.dtd" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" xid-max="6" xmlns:dc="http://purl.org/dc/elements/1.1/" styles="unlocked" fileformat="1.1" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:awml="http://www.abisource.com/awml.dtd" xmlns="http://www.abisource.com/awml.dtd" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.9.1" xml:space="preserve" props="dom-dir:ltr; document-footnote-restart-section:0; document-endnote-type:numeric; document-endnote-place-enddoc:1; document-endnote-initial:1; lang:en-GB; document-endnote-restart-section:0; document-footnote-restart-page:0; document-footnote-type:numeric; document-footnote-initial:1; document-endnote-place-endsection:0">
<!-- ======================================================================== -->
<!-- This file is an AbiWord document.                                        -->
<!-- AbiWord is a free, Open Source word processor.                           -->
<!-- More information about AbiWord is available at http://www.abisource.com/ -->
<!-- You should not edit this file by hand.                                   -->
<!-- ======================================================================== -->

<metadata>
<m key="abiword.date_last_changed">Tue Sep 17 18:56:34 2024
</m>
<m key="abiword.generator">AbiWord</m>
<m key="dc.creator">xircon</m>
<m key="dc.date">Tue Sep 17 18:56:34 2024
</m>
<m key="dc.format">application/x-abiword</m>
</metadata>
<rdf>
</rdf>
<history version="1" edit-time="347" last-saved="1726595794" uid="5efb135a-751d-11ef-8c1e-aa97598cd63c">
<version id="1" started="1726595794" uid="2dae0b08-751e-11ef-8c1e-aa97598cd63c" auto="0" top-xid="6"/>
</history>
<styles>
<s type="P" name="Normal" followedby="Current Settings" props="font-family:Times New Roman; margin-top:0pt; color:000000; margin-left:0pt; text-position:normal; widows:2; font-style:normal; text-indent:0in; font-variant:normal; font-weight:normal; margin-right:0pt; font-size:12pt; text-decoration:none; margin-bottom:0pt; line-height:1.0; bgcolor:transparent; text-align:left; font-stretch:normal"/>
</styles>
<pagesize pagetype="A4" orientation="portrait" width="210.000000" height="297.000000" units="mm" page-scale="1.000000"/>
<section xid="5" props="page-margin-footer:0.5000in; page-margin-header:0.5000in; page-margin-right:1.0000in; page-margin-left:1.0000in; page-margin-top:1.0000in; page-margin-bottom:1.0000in">
<p style="Normal" xid="6"><c>1. </c><c props="font-weight:bold">This line should be bold</c></p>
<p style="Normal" xid="1"><c props="font-weight:bold"></c></p>
<p style="Normal" xid="2"><c props="font-weight:normal">2. </c><c props="bgcolor:transparent; font-weight:normal; color:ff0000">The text in this line should be red.</c><c props="bgcolor:transparent; font-weight:normal; color:ff0000"></c></p>
<p style="Normal" xid="3"><c props="bgcolor:transparent; font-weight:normal; color:ff0000"></c></p>
<p style="Normal" xid="4"><c props="bgcolor:transparent; font-weight:normal; color:000000">3. </c><c props="bgcolor:transparent; font-weight:normal; color:000000; font-style:italic">This line should be italic.</c></p>
</section>
</abiword>

Take a look at the file format in the OP’s initial post. It says .txt. That’s the very likely cause of the issue. Not Abiword itself. :wink:

2 Likes

Morning everyone, ok so:

1. Dolphin:
After reading all that I decided to start with Dolphin and I created the proper(I hope) files in ~/.local/share/templates/ and ~/.local/share/templates/.source/.

Then(as I understood it) I went to /usr/share/templates/ where I was expecting to find some desktop files already created by Dolphin that I have to edit and point them to the new files I created above?
Or at least I tried, thing is I don’t have any template folder in /usr/share… So I created one and simply copied the files and folder I created in .local/share into it.

After all that when I right click>Create new in Dolphin I do see a new “Abiword File” option with some very weird behavior:

  • normally when you create a new file with the other regular options Dolphin has you get a normal dialog box like this
    NormalDialogBox

  • with the new Abiword File option however I get this

  • but fine whatever I renamed it and clicked ok(when naming it you have to specify the .extension too, otherwise it will create a new file that has no extension though it still opens with Abiword), and that does create a new abiword file in the folder you are in

  • however when I go to open this new file instead of getting a regular empty abiword document it contains the things I entered in the desktop file, aka:

[Desktop Entry]
Type=Template
Name=Abiword File
Comment=Create a new Abiword file
Exec=kf5-abiword --new

So yeah, there you have it. Feel free to have a nice, long laugh and tell me how much I’ve screwed things up. :innocent:

2. Double Commander:
Like I said this is the main file manager program that I use where I’d really like to make this work.
In it I already had this in it’s options

but it doesn’t work cause it just creates a .txt file that opens with abiword(and even if I give it .abw extension when creating it, it still doesn’ work), so I figured I’d ask on their forums too see if there is anything I can enter in the “Additional parameters” box to make it create a .abw file instead of .txt

But while I’m waiting on some replies over there if anyone here happens to know/suspect what I should enter pretty please share.

The only thing I was able to find on google is this DC documentation, but it doesn’t answer my question… :pleading_face:

Every Expert was a beginner.

looks like to me you made the .desktop file the template file somehow

maybe try this:
kf5-abiword --new
the same command that is in the .destop file

Yeah, somehow beeing the operative word… :crazy_face:

Hmmm, that does seem to work, but once again(me beeing me :blush:) with some very wierd behavior…:

  • I set that parameter then try to create a new file;

  • it doesn’t automatically set the .abw extension itself and it doesn’t matter if I manually set it to .abw or .txt myself because

  • in eighter case a new file is create and abiword launches, I edit stuff and add bold, colors, etc. then I click X to close it and the little window asking me if I wanna save appears;

  • I click yes, and instead of saving the changes to the file and closing the giant “Save as” window appears…;

  • on this step it doesn’t matter if: I save it as a new file with .abw | I select and overwrite the initial file that I created as .abw | I select and overwrite the initial file that I created as .txt!!!
    (although in the last scenario this extra box does pop up, and I click yes)

  • in eighter of those cases it saves it with the formatting correctly there and if I edit the file and add more stuff/change formatting it saves properly, loooool

  • oh, and any further edits will save normally directly to the file when I click X and doesn’t show the “Save As” window again.

1 Like

Hopefully someone who uses abiword can chime in soon.

For the “Editor” section in Double Commander, it’s asking you for a simple text editor, not a rich text editor. I imagine this is why it had trouble at first.

As far as Abiword is concerned, sorry to say, but most people don’t use it.
Abiword Stats: https://pkgstats.archlinux.de/packages?query=abiword
LibreOffice Stats: https://pkgstats.archlinux.de/packages?query=libreoffice
OnlyOffice: https://pkgstats.archlinux.de/packages?query=onlyoffice
Calligra Suite: https://pkgstats.archlinux.de/packages?query=calligra

So, you’re probably gonna have to figure it out yourself or use AI to troubleshoot.

1 Like

Oh… :pleading_face:

Not a bad thing. You may learn a thing or two and become more independent.

Since having AI create a YouTube to FreeTube script for a forum member, I now have anywhere between 3–6 scripts running on my device that make my workflow easier.

I was averse to using AI for things like that before, but because the script couldn’t cause issues with a user’s system, I tried, it worked, and I learned more about scripting.
:wink: :vulcan_salute:

Me too, I very rarely use it but it can be handy at times

1 Like

Yep. Like converting all my Openbox shortcuts to work in sxhkd.

That would’ve been a somewhat tedious task for Openbox-specific commands, but by making AI do it for me, I just need to check if it was done correctly, then implement it.

So instead of using over 10 minutes, I only used less than 3. → Think of and write a good prompt, wait a few seconds, review the output, implement it, done.

1 Like