Reduce space between rendered rules of a judgement form
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- design
Direzione di ricerca
Inizia con l’esempio standalone e il punto di ingresso render-judgment-form, quindi traccia come i parametri di spaziatura elencati influenzano il layout di judgment-form. Confronta la spaziatura compatta richiesta con il comportamento di horizontal-bar-spacing mostrato nello screenshot; il lavoro è completo quando le regole renderizzate possono essere rese più compatte e la spaziatura della barra evidenziata si comporta in modo coerente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I have quite a large judgment form to be rendered for a paper, and I would like to somewhat compact it by reducing the space between the different rules. A standalone excerpt of the judgment form can be found below. To demonstrate, I set all of the "spacing" parameters that I could find to 0, even when they do not affect the rendering of judgment forms.
As a sidenote, I have noticed that, in some cases, the parameter horizontal-bar-spacing reduces only the space above a horizontal bar, and not below. In the screenshot below the code I highlighted one such instance with a red arrow. Possibly related to the inclusion of a unicode union character in the bottom line?
#lang racket
(require redex
redex/pict)
(define-language CommonLang
(k ::= number i)
(p ::= (k ...))
(p-exp ::= k * [script-op (~ k ...)] [script-op k] [⋃ k ...]))
(define-judgment-form
CommonLang
#:mode (matches-in-env I I I)
#:contract (matches-in-env ps p env)
[--------------------------------- "empty-selector"
(matches-in-env () () env)]
[(matches-in-env (p-exp ...) (k_2 ...) env)
--------------------------------- "literal-key"
(matches-in-env (k_1 p-exp ...) (k_1 k_2 ...) env)]
[(matches-in-env (k_1 p-exp ...) (k_2 ...) env)
--------------------------------- "union-first"
(matches-in-env ([⋃ k_1 k_3 ...] p-exp ...) (k_2 ...) env)])
(define (render-matches-in-env . filepath)
(arrow-space 0)
(label-space 0)
(reduction-relation-rule-separation 0)
(reduction-relation-rule-extra-separation 0)
(reduction-relation-rule-line-separation 0)
(horizontal-bar-spacing 0)
(metafunction-gap-space 0)
(metafunction-rule-gap-space 0)
(metafunction-line-gap-space 0)
(if (empty? filepath)
(render-judgment-form matches-in-env)
(render-judgment-form matches-in-env (car filepath))))
The space that I wish to somewhat reduce highlighted with a red bar, and an instance of horizontal-bar-spacing not respecting being set to 0 is highlighted with a red arrow.
- Lingua principale
- Racket
- Stelle
- 114
- Fork
- 42
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di racket/redex
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Tutte le issue di racket/redex
Issue simili
-
Bank key uses the rial sign for a toman-denominated unit, and the Hub door uses a different symbolApertagood first issue i18n P2 ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
prophet-technocracy/civilizational-emergency-protocol#42 ·
I maintainer di solito rispondono entro 1 giorno
-
Review view: Daily/Weekly Review header buttons use the app-wide toolbar control styleForse già presa @colherdesopa l’ha presa oggi. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
dongdongbh/Mindwtr#1515 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
KonstantinStarovoytov/kitden#21 ·
I maintainer di solito rispondono entro 1 giorno
-
parity priority: low ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
storytold/materialcraft#105 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
design ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
pranavvehmid/delt#53 ·