BasicEditing-Talk

Annoying Auto Typing

When I edit a Pmwiki page on this website I find it very annoying that
entering a single '(' automatically types ')'. I only want it to enter
characters that I type on the keyboard. This happens for these
characters: '( [ { "'. It does not appear to affect "'". Are there others?

I do not enjoy typing. I often press the wrong keys. This is a reason I hate
the (:directive ... :) markup. Those characters I often goof up.
Sometimes I have to type them like 8 times. It makes me angry.
All this feature does is make it so I have to erase the added character and
makes my sad pathetic typing skills even more miserable than they already are.

Is there some way to turn this off?
--gnuzoo

$EditAutoBrackets is exactly for people who find it difficult to type punctuation -- with these you only type half of the characters. Nevertheless I plan to make this configurable per user, and per selection, so I disabled it for now. Petko

πŸ¦Έβ€β™‚οΈ Super Petko to the rescue again!
Thank you so much. Getting older and not seeing as well as I used to, I find
it harder to type anything. I was complaining about (:directive ... :) markup
before you took over maintenance. I recall doing it in chat with Pm back then.
My preference is to control the computer rather than have the computer control me.
Having learned to type in high school, I am no where near as good as I used to be.
I suggest a checkbox to turn it on in the upper right next to '[[Highlight]]'
--gnuzoo


The Basic editing page needs to add a section for media

A LOT of websites want to use audio and video.
It cannot be too difficult to add a section into
"Basic editing" on how to play them using 🦍 APE.

IMHO 🦍 APE should be a fundamental part of PmWiki
and not a recipe in the cookbook.
--gnuzoo

Feel free to open a PITS entry for a change request to the core. Petko


Remove <p> tags

Is there any way to prevent PmWiki to add <p> tag? Thank you!

Hemiola

Yes, however in some cases this might cause non-standard HTML, or styling issues. You can either replace the <p> tags with <div>, or add a custom markup to remove the tags in specific places like menus. Add to config.php:

# Replace <p> with <div>
$BlockMarkups['p'] = array('<div>','','</div>',0);

Note that this will change the way PmWiki outputs vertical white space (between subsequent paragraphs):

Originally:
<p class='vspace'>Paragraph</p>

After the change:
<div class="vspace"></div>
<div>Paragraph</div>

To add a markup (:nop:) removing a specific <p></p> tag, add to config.php:

Markup('nop', '<block', '/^\\(:nop:\\)/', '<:block>');

Then in a wiki page, do something like:

>>frame menu<<
(:nop:) This is a direct child of the div.frame.menu above, no <p>
>><<

Maybe this deserves a Cookbook page. UpdateMe --Petko


Link title attributes

There needs to be something about setting the HTML title element on links. The title attribute also works as a tooltip.

Examples show the title attribute set in image links in double quotes adjacent to the right side of the image file reference.

[[URL|image"title attribute text"]]

see: https://www.pmwiki.org/wiki/PmWiki/Images#links

This will not work for a text link. I had an extremely difficult time finding that this works for a text link by putting the title attribute text in double quotes adjacent to the left side of the URL

[[https://pmwiki.org"title attribute text"|PmWiki]]

This works - mouse over the link and see the tooltip:

[[https://pmwiki.org"title attribute text is here"|PmWiki with HTML title attribute set]]

PmWiki with HTML title attribute set

This will not work:

[[https://pmwiki.org|PmWiki with HTML title attribute set"no title attribute text is here"]]

PmWiki with HTML title attribute set"no title attribute text is here"

I also found the title/tooltip being adjacent to the URL appears to work too.

gnuzoo

Someone didn't consider this to be "basic", so it is documented in Links#tooltiptitle. In fact, Attach: with a picture was implemented by Pm, then later I added it for external links, and even later for page links. The "Attach:" prefix is an InterMap prefix for PmWiki (like "https:") so these use the same logic. --Petko


This is a talk page for improving PmWiki.BasicEditing.