IRC log of #dokuwiki @ irc.libera.chat

For Tuesday, 12 October 2021

  1. quit
    nparafe (~quassel@user/nparafe) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
  2. join
    nparafe (~quassel@user/nparafe) has entered the channel
  3. join
    Lunatrius` (~Lunatrius@tm.84.52.181.125.dc.cable.static.telemach.net) has entered the channel
  4. quit
    Lunatrius (~Lunatrius@77.38.92.228) has quit (Ping timeout: 265 seconds)
  5. nick
    Lunatrius` is now known as Lunatrius
  6. join
    Lunatrius` (~Lunatrius@77.38.91.201) has entered the channel
  7. quit
    Lunatrius (~Lunatrius@tm.84.52.181.125.dc.cable.static.telemach.net) has quit (Ping timeout: 252 seconds)
  8. nick
    Lunatrius` is now known as Lunatrius
  9. join
    Lunatrius` (~Lunatrius@77.38.92.228) has entered the channel
  10. quit
    Lunatrius (~Lunatrius@77.38.91.201) has quit (Ping timeout: 245 seconds)
  11. nick
    Lunatrius` is now known as Lunatrius
  12. message at
    #dokuwiki
    Unfortunately I have to leave you now. So don't do anything silly while I'm not here.
  13. message at
    #dokuwiki
    Unfortunately I have to leave you now. So don't do anything silly while I'm not here.
  14. join
    dokubot (~irclog@piggy.dokuwiki.org) has entered the channel
  15. join
    guavarockstar[m] (~mopmatrix@2001:470:69fc:105::1:16e5) has entered the channel
  16. message at
    guavarockstar[m]
    Hi, I'm trying to modify my dokuwiki so it can display SJIS/AA art. This involves, essentially, preserving a line of preformatted text like what <file> / <code> can do, but it also needs to have a different CSS style.
  17. message at
    guavarockstar[m]
    Is this something Dokuwiki is capable of doing?
  18. message at
    guavarockstar[m]
    Here's an example: https://aachan.sageru.org/
  19. message at
    guavarockstar[m]
    wrong URL -> https://aachan.sageru.org/browse.pl?md5=17ef552f596bebeb990ee819d659f8ae
  20. message at
    guavarockstar[m]
    I tried using <WRAP> plugin and even added XBR plugin, but it's mistakenly parsing parts of the "art" as valid Wiki syntax with an example I am testing
  21. message at
    guavarockstar[m]
    I basically just need to combine the HTML <pre> tag with a specific style.
  22. message at
    michitux
    There is %% and you could also use <code> or <nowiki> inside a WRAP tag, see also https://www.dokuwiki.org/wiki:syntax#no_formatting.
  23. message at
    guavarockstar[m]
    SJIS (Japanese ASCII art) spans multiple lines and it's a different stylesheet than "normal" code (eg, not monospaced)
  24. message at
    michitux
    I think <code> could work, you could change the style using css if you enclose it with a WRAP tag. I.e., just override the default monospace font of the code tag.
  25. message at
    michitux
    https://www.dokuwiki.org/devel:css#user_styles describes how to easily add some css.
  26. message at
    guavarockstar[m]
    I see, so WRAP tag's style will override code ?
  27. message at
    guavarockstar[m]
    I really appreciate the help. sorry for being so pushy
  28. message at
    guavarockstar[m]
    Just been trying to figure this out and keep hitting dead ends and chasing false leads alone hahaha.. I'm a total outsider
  29. message at
    michitux
    No problem, my idea would be to add some css that overrides the style of the code tag if it is inside a specific WRAP tag.
  30. message at
    guavarockstar[m]
    <WRAP sjis><code> </code></WRAP> with the proper CSS for the "sjis" part of WRAP will allow Japanese ASCII art to be rendered according to SJIS's style, ignoring code's style, preserving multi-line and "this is not wiki code" instruction?
  31. message at
    guavarockstar[m]
    I am using tpl/monobook, I just added this to conf/userstyle.css
  32. message at
    michitux
    That won't be enough, you need to target the code's HTML tag inside the WRAP's div.
  33. message at
    guavarockstar[m]
    so in my CSS file, `div.dokuwiki div.sjis code` ?
  34. message at
    guavarockstar[m]
    Sorry... I am completely lost hahahaha
  35. message at
    michitux
    I think `div.dokuwiki div.sjis pre.code` in your CSS file.
  36. message at
    michitux
    I'm on my phone and mobile browsers are a bit lacking in terms of dev tools 😉
  37. message at
    michitux
    Maybe you need to touch (i.e. set the last modification time to now) `conf/local.php` to purge the css cache (all css files are combined into one file and minified).
  38. message at
    guavarockstar[m]
    I updated div.dokuwiki div.sjis pre.code, but it seems to still listen to code -- and the <WRAP sjis>example</WRAP> doesn't show the proper font. I found a working example of what I'm trying to do in the wild but am unable to contact its author: https://namelessrumia.heliohost.org/w/doku.php?id=aa#verification_test
  39. message at
    guavarockstar[m]
    I massively appreciate your support, this is what I'm working with:
  40. message at
    guavarockstar[m]
    https://tanasinn.vip/doku.php/sjis/test
  41. message at
    guavarockstar[m]
    https://tanasinn.vip/doku.php/sjis/test?do=edit&rev=1634016350
  42. message at
    guavarockstar[m]
    I am not the admin of the wiki (and they are less tech skilled than I barely am), but I have FTP access
  43. message at
    michitux
    It should be <WRAP sjis><code>example</code></WRAP>
  44. message at
    michitux
    And this is basically exactly the syntax used by that website you linked.
  45. message at
    guavarockstar[m]
    That is my syntax, yes
  46. message at
    guavarockstar[m]
    "hello" looks right, but not the codeblock
  47. message at
    guavarockstar[m]
    I know this isn't a CSS help channel, sorry 😅 I'm honestly a bit surprised that I may be the first person asking for help
  48. message at
    guavarockstar[m]
    I'll write a "how to make SJIS work on Dokuwiki" and release it FLOSS after figuring this out, and share it with the Western SJIS community
  49. message at
    michitux
    Maybe you need some more specific css rule or just !important. I don't have dev tools here on mobile so I can't check which css rules currently apply to the code tag.
  50. message at
    guavarockstar[m]
    oh, maybe my mistake was adding "white-space: nowrap" trying to copy the CSS of <pre> I found on a random Google haha
  51. message at
    michitux
    I need to go, I can probably have another look in 2 hours (and then not on mobile).
  52. message at
    guavarockstar[m]
    I think I solved it!
  53. message at
    guavarockstar[m]
    Thank you so much Michael Hamann
  54. message at
    michitux
    You're welcome 🙂
  55. quit
    WrathOfAchilles (unit193@libera/staff/unit193) has quit (*.net *.split)
  56. quit
    bkidwell (~quassel@vicky3.xen.prgmr.com) has quit (*.net *.split)
  57. quit
    StathisA (~StathisA@178-147-35-19.haap.nym.cosmote.net) has quit (*.net *.split)
  58. join
    WrathOfAchilles (unit193@libera/staff/unit193) has entered the channel
  59. join
    bkidwell (~quassel@vicky3.xen.prgmr.com) has entered the channel
  60. join
    StathisA (~StathisA@178-147-35-19.haap.nym.cosmote.net) has entered the channel
  61. quit
    StathisA (~StathisA@178-147-35-19.haap.nym.cosmote.net) has quit (Max SendQ exceeded)
  62. quit
    WrathOfAchilles (unit193@libera/staff/unit193) has quit (Max SendQ exceeded)
  63. join
    WrathOfAchilles (unit193@libera/staff/unit193) has entered the channel
  64. join
    StathisA (~StathisA@178-147-35-19.haap.nym.cosmote.net) has entered the channel
  65. join
    Tomte (~th@p200300db9f1fd800ecab8cb99dfb1c87.dip0.t-ipconnect.de) has entered the channel
  66. quit
    Tomte (~th@p200300db9f1fd800ecab8cb99dfb1c87.dip0.t-ipconnect.de) has quit (Client Quit)
  67. join
    Tomte (~th@p200300db9f1fd800ecab8cb99dfb1c87.dip0.t-ipconnect.de) has entered the channel
  68. join
    splitbrain (~splitbrai@2a02:8109:b240:3914:4ecc:6aff:fe88:b05b) has entered the channel
  69. quit
    Tomte (~th@p200300db9f1fd800ecab8cb99dfb1c87.dip0.t-ipconnect.de) has quit (Quit: Leaving)
  70. part
    pirate (~test@user/pirate) has left the channel (#dokuwiki) with message 'none'
  71. quit
    splitbrain (~splitbrai@2a02:8109:b240:3914:4ecc:6aff:fe88:b05b) has quit (Remote host closed the connection)