Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    ```

    Pianificato Fissato Bloccato Spostato Uncategorized
    4 Post 2 Autori 0 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • xarvos@outerheaven.clubX Questo utente è esterno a questo forum
      xarvos@outerheaven.club
      ultima modifica di

      >>> '一' < '二'
      True
      >>> '二' < '三'
      False
      

      :neofox_what:

      xarvos@outerheaven.clubX 1 Risposta Ultima Risposta Rispondi Cita 0
      • xarvos@outerheaven.clubX Questo utente è esterno a questo forum
        xarvos@outerheaven.club @xarvos@outerheaven.club
        ultima modifica di

        in fact:

        >>> sorted('一二三四五六七八九十')
        ['一', '七', '三', '九', '二', '五', '八', '六', '十', '四']
        

        :apensive:

        xarvos@outerheaven.clubX 1 Risposta Ultima Risposta Rispondi Cita 0
        • xarvos@outerheaven.clubX Questo utente è esterno a questo forum
          xarvos@outerheaven.club @xarvos@outerheaven.club
          ultima modifica di

          yea i know they are because of code points

          >>> list(map(ord, '一二三四五六七八九十'))
          [19968, 20108, 19977, 22235, 20116, 20845, 19971, 20843, 20061, 21313]
          

          why aren't they next to each other

          like, if i had a collection of books with chinese names and numerals they'd be all out of orders :blobcatgooglyholdingitsheadinitshands:

          on another note i found out that if a book is split into several parts in chinese they might be labelled with 上/中/下 instead of 一/二/三, and guess what?

          >>> sorted('上中下')
          ['上', '下', '中']
          

          yea :apensive:

          steffo@a.junimo.partyS 1 Risposta Ultima Risposta Rispondi Cita 0
          • steffo@a.junimo.partyS Questo utente è esterno a questo forum
            steffo@a.junimo.party @xarvos@outerheaven.club
            ultima modifica di

            @xarvos so they would be in other languages as soon as you get to 2+ digits, unless you'd perform a numerical sort

            1 Risposta Ultima Risposta Rispondi Cita 0
            • Primo post
              Ultimo post