Strikethrough syntax

235 views
Skip to first unread message

wwwald

unread,
May 25, 2012, 9:56:21 AM5/25/12
to wikidpad-devel
Hi guys,

I just tried to add a "strikethrough" markup to the default Wikidpad
syntax. I made a custom "...WikidPadParser.py" file and adjusted
HtmlExporter.py to generate and handle "strikeThrough" parser nodes in
response to text surrounded by "--" markers. HtmlExporter.py inserts a
"<del>" tag around the text, the standard HTML strikethrough tag.

This all seems to work for exported pages viewed in IE or Firefox,
they show the strikethrough. But: WikidPad's internal renderer does
not handle this correctly. I tried switching the preview renderer in
WikidPad's options to IE, but the renderer menu is greyed out for me.

Would it be possible to make strikethroughs show correctly in the
internal renderer? If not, why is it impossible for me to choose IE as
the preview renderer?

Thanks a lot for any feedback,
wwwald

Michael Butscher

unread,
May 25, 2012, 4:52:17 PM5/25/12
to wikidpa...@googlegroups.com
On 25.05.2012 15:56, wwwald wrote:

> Would it be possible to make strikethroughs show correctly in the
> internal renderer?

No, it doesn't support this.


> If not, why is it impossible for me to choose IE as
> the preview renderer?

Which version of Windows do you use?

Which version of Internet Explorer do you use?

Which version of WikidPad do you use?

Did you use a binary version of WikidPad or the source code for installation?



Michael

wwwald

unread,
Jul 10, 2012, 4:22:13 AM7/10/12
to wikidpa...@googlegroups.com
Sorry for the late reply, I forgot to configure email notifications for this group. My bad.
I'm on Windows 7 64bit, installed Internet Explorer is version 8. Using a SVN checked out Wikidpad installation, currently on 2.3 beta 5.

Thanks a lot for the feedback,
wwwald

wwwald

unread,
Jan 11, 2013, 5:34:10 AM1/11/13
to wikidpa...@googlegroups.com
Hi,

Sorry to bring this up again, but I recently bumped into my "renderer choice" problem again.
In Extra > Options > HTML Preview/export, the "Preview renderer" menu is greyed out, showing the "Internal" choice.

This is a Windows 7 SP1 64bit system with IE8 installed. Wikidpad runs from SVN checked out source, just updated to r381 (2.3 beta 7).

Any thoughts on what could be causing this? Should I try a binary installation?

Thanks for any hints,
wwwald

Michael Butscher

unread,
Jan 12, 2013, 6:03:31 AM1/12/13
to wikidpa...@googlegroups.com
On 11.01.2013 11:34, wwwald wrote:
> Hi,
>
> Sorry to bring this up again, but I recently bumped into my "renderer
> choice" problem again.
> In Extra > Options > HTML Preview/export, the "Preview renderer" menu is
> greyed out, showing the "Internal" choice.
>
> This is a Windows 7 SP1 64bit system with IE8 installed. Wikidpad runs from
> SVN checked out source, just updated to r381 (2.3 beta 7).
>
> Any thoughts on what could be causing this? Should I try a binary
> installation?

If you are using the source then you can change "lib\pwiki\WikiHtmlView.py".
About at line 42 there is:

except:
# traceback.print_exc()
WikiHtmlViewIE = None


uncomment the traceback:

except:
traceback.print_exc()
WikiHtmlViewIE = None



If you now run WikidPad again it should write something helpful into the error
log. This is the "WikidPad_Error.log" file created in the configuration
directory (which can be found by using "Help"->"About" in the menu and scrolling
the info text down to the end).

What is its content (at least the last few 100 lines)?



Michael

wwwald

unread,
Jan 12, 2013, 8:14:41 AM1/12/13
to wikidpa...@googlegroups.com
Hello Michael,

Thanks for getting back on this so soon, you actually helped me find a fix already.
Apparently, the "comtypes" module was missing from my Python distribution, so I easy_installed it. This immediately solved the problem, I have the IE and Mozilla options available right now.

Thanks a bunch for the hint!
wwwald
Reply all
Reply to author
Forward
0 new messages