FediTown
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 年前

AI's take on XML

lemmy.world

external-link
message-square
132
link
fedilink
1.23K
external-link

AI's take on XML

lemmy.world

renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 年前
message-square
132
link
fedilink
  • SzethFriendOfNimi@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    2 年前

    Sounds like it’s actually using XSLT or some kind of content validation. Which to be honest sounds like a good practice.

    • clb92@feddit.dk
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      2 年前

      Here’s an example of a text object taken from the XML, if you’re curious: https://clips.clb92.xyz/2024-09-08_22-27-04_gfxTWDQt13RMnTIS.png

      EDIT: And with more complicated strings (like ones havingnumbers or symbols - just regular-ass ASCII symbols, mind you) there will be tens of <stringItem>, because apparently numbers and letters don’t even work the same. Even line breaks have their own <stringItem>. And if the number of these <stringItem> and their charLen don’t match what’s actually in pt:data, it won’t open the file.

      • SzethFriendOfNimi@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 年前

        Is it because of the lower case Latin æ since it’s technically one character even if two bytes?

        • clb92@feddit.dk
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 年前

          Nope, doesn’t seem like it.

          • SzethFriendOfNimi@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 年前

            What a mess… sounds like the devs got burned by various Unicode edge cases RTL, etc

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 100 users / day
  • 811 users / week
  • 1.6K users / month
  • 5.18K users / 6 months
  • 1 local subscriber
  • 42.3K subscribers
  • 1.82K Posts
  • 26.7K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.mldeleted by creator
  • BE: 0.19.18
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org