Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

BUG BrailleConverter output is ambiguous: "1a" encodes the same as "11", and "$" uses the period cell

Aperta
#3,532 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@barkha1research-ai ci sta già lavorando.

Dal 26/10/2026.

  • #3533 di @barkha1research-ai — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

The issue identifies BrailleConverter and provides a reproduction with four prompts and expected braille output. Start by locating the converter and its tests, then compare how it handles letters after numbers and the dollar sign. Done means the four outputs match the expected results; linked pull request #3533 is already open.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug: triage
Describe the bug

BrailleConverter produces the same braille for different inputs in two cases, so the encoded prompt cannot be read back unambiguously:

  1. A letter from a to j directly after a number is written without the letter sign (dots 56, ⠰). In braille the letters a to j share their cells with the digits 1 to 0, so 1a and 11 both become ⠼⠁⠁.
  2. $ is mapped to ⠲, the period cell, so $5 and .5 both become ⠲⠼⠑. The Unified English Braille dollar sign is dot 4 followed by dots 234 (⠈⠎), which is also how liblouis's UEB table (en-ueb-chardefs.uti: sign $ 4-234) defines it.

liblouis's UEB grade 1 table (en-ueb-g1.ctb) marks a to j as the letters that need the letter sign after a number (numericnocontchars, nonumsign 56).

Steps/Code to Reproduce
import asyncio

from pyrit.converter import BrailleConverter


async def main():
    converter = BrailleConverter()
    for prompt in ["1a", "11", "$5", ".5"]:
        result = await converter.convert_async(prompt=prompt)
        print(prompt, result.output_text)


asyncio.run(main())
Expected Results
1a ⠼⠁⠰⠁
11 ⠼⠁⠁
$5 ⠈⠎⠼⠑
.5 ⠲⠼⠑
Actual Results
1a ⠼⠁⠁
11 ⠼⠁⠁
$5 ⠲⠼⠑
.5 ⠲⠼⠑
Versions
  • PyRIT version: installed from main (246b659e) in editable mode
  • Python version: 3.12

I have a fix for both and would like to open a PR for it.

Lingua principale
Python
Stelle
4.7k
Fork
980
Merge medio
2g 9h
PR unite (30g)
422

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/PyRIT

Tutte le issue di microsoft/PyRIT

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.