#poki Lapo: Toki Pona library

6303 messages · Page 7 of 7 (latest)

warm valley
#

Sorry to bother again, but can someone approve #170, #171, and #173 and reject #172? thank you!

#

you know, scratch that, reject #173 as well but approve #174, sorry :(

craggy lion
#

Hey, was looking at https://lipu.pona.la/a/jan_Mika/, and wanted to let y'all know that I am not the same jan Mika that made the things from 2011 and before 🙃

#

This is also how I find out I wasn't the first jan Mika tho, at the time I had chosen my name I had done a search in the discord to see if there were any "Mika"s before choosing it and found none

#

Not like I can really change it tho, unless I go for "Majeka", which is also taken. My name in English is "Mika" (but pronounced /ˈmaɪkə/) so like... my options were basically just... keep my spelling or keep my pronunciation with "Majeka"

nocturne compass
craggy lion
#

i do like the appeal of keeping the exact spelling of my name tho

#

it's nice

carmine quarry
#

cause really /aɪ/ is /aj/ and /j/ is a consonant and its in a coda and codas are lost

carmine quarry
#

@nova gale @hasty quarry @uneven heath
jan Alin has a prototype site that stores song lyrics with chords. we could integrate that functionality into lipu.pona.la

the technical side of things in short: song files comply with https://github.com/Ultimate-Guitar/Tabdown (i think?), which is then rendered to html. in our case, it would probably require a custom or customised render function?

i don't have the energy to work on something like this, but if anyone (including just jan Alin) wants to, it would be badass

GitHub

Tabdown is an open mark-up language for text tabs & chords. - ultimate-guitar/Tabdown

uneven heath
#

toki! I'm motivated to contribute to this, but I'd need a bit of an introduction to the technical side of lipu.pona.la first, if anyone is willing to give me that (or just point me to the right documentation)

carmine quarry
#

longer answer is that if you haven't used Astro before, it may be useful to familiarise yourself with the typical project structure

uneven heath
#

That'll be a great place to start, thanks!

nova gale
#

I think the easiest way to implement this would be making an astro integration to render tabdown files (.td :O). making this would be relatively easy and take some weight off of the current metadata. Glancing over the way Tabdown does things, i think we may need to modify things a bit to make the metadata consistent. (it's in some weird format instead of YAML; the fields are not nullable; we have some overlapping and redundant keys.)

#

the rendering should be as easy as html escaping the plaintext and putting it inside a pre tag.

carmine quarry
#

i think the key functionality we are interested in is alignment of chords and lyrics

nova gale
#

which monospacing the text does?

carmine quarry
#

it does. it also happens to be kind not nice to look at

#

if you want to read a poem you can variable-width, but if we add chords then suddenly whenever you read a song it has to be monospace

nova gale
#

fair enough. aligning non-monospaced text is kind of a pain in the ass too. It also seems almost all other tab-sites use monospace fonts.

carmine quarry
#

aligning non-monospaced text is kind of a pain in the ass too
jan Alin's prototype does that!

nova gale
#

except songsterr, but that one is ugly in other ways

carmine quarry
nova gale
#

what happens if you put the chords too close to each other

#

ouch. gotta love untyped python

#

i'll pull this and play with it

#

pyright does not aprove

uneven heath
#

It was a personal project only so far, the requirements were super basic. If it becomes part of a larger project it's reasonable to up the code quality.

nova gale
#

yea i understand. If it's ok i can make a pr to make the code more "pythonic"

uneven heath
#

The way chord alignment is done in HTML is by keeping the chords inline with the text, then using CSS to move them up and negate their width in the actual text body.

uneven heath
nova gale
#

it's easier to read that way, and if we are going to use it as reference for lipu, i'd prefer it that way.

nova gale
carmine quarry
nova gale
#

it takes about the same amount of mental work to side quest this over now than to try to map the functions over to each other later.

uneven heath
#

I'm currently using that code, along with a custom frontend, for my personal collection of songs I like to play. I can't share it publicly though, because there's a bunch of copyrighted lyrics in my collection, so it's a "personal use only" thing.

nova gale
#

untyped python is a write only language. been in a spot where i write some code and the next day have to basically write it again because i do not understand what's going on in there. ofc it's ok for simple personal programs.

uneven heath
# nova gale what happens if you put the chords too close to each other

Oh, to answer this: they just overlap and it looks ugly... But it doesn't happen very often, because the source format doesn't allow putting chords too close in the first place, and if you have very quick chord changes you already have to pad the lyrics with whitespace (which is preserved in my frontend)

nova gale
#

👍

uneven heath
#

The overall structure of my parsing code should be fairly usable. But yeah, you've noted, I was too lazy to add type annotations or too much boilerplate

nova gale
#

that's fine. i'll read trough the code and add types and comments. probably also convert the dicts to named tuples and rename some functions.

uneven heath
#

that's awesome. LMK if you have any questions. (I don't doubt you can read everything just fine but sometimes asking is faster ^^ )

nova gale
#

oh right i forgor about this and made some korvapuustit instead. on it now.

uneven heath
#

now I'm hungry 😄 no need to rush on my behalf!

nova gale
#

not doing it for you. if i take any more sidequests i'll never get to this.

#

just look at lipu's search feature: it's like 80% complete, only lacking the api itself (which i hate doing) and it would be stable.

#

oh and some server side networking (that's actually fun) that i want to leave last to make it actually compatible with the api, cross-scripting stuff and all of that

heady vigil
#

I love my sons, music, music2 and music3

#

favourite songs

vague coral
#

o pana la mi ken alasa

carmine quarry
vague coral
heady vigil
#

@vague coral

vague coral
#

æ!

heady vigil
#

may I ask, how do I deal with this: two singers at once, being notated together
https://www.youtube.com/watch?v=Swu30OuboiQ

I translated Machikado Mazoku 2 Choume OP "Tokimeki Rendezvous" to toki pona.
This is my first toki pona translation project. If you have any suggestions for a better translation, please let me know in the comments section or below.

まちカドまぞく2丁目OP『ときめきランデヴー』をtoki pona訳しました。
これは私にと...

▶ Play video
#
  • remove singer information
  • add singer information with hidden comments
  • add singer information in text (sacrifice legibility)
#

quite janky

#

@vague coral @carmine quarry

carmine quarry
#

don't know

#

its worth looking up other duet songs online and see how they're done

#

maybe even this exact one in the original

vague coral
#

nasin pi ma [Genius] li ni → jan pi mute toki nanpa wan li mu · jan nanpa tu li mu · san la mu · po la mu · jan tu li lon tenpo sama la ona li kama jan sin wan

heady vigil
#

argh

#

I will for now just remove it

heady vigil
#

wawa

heady vigil
#

what the fuck is a 'chorus'

#

a bridge is already a thing 🌉

nova gale
#

in most gendres, the chorus is the part that repeats multiple times or the part that feels the most catchy and energetic

#

bridge is the part before the chorus that builds up to it

#

intros and outros are pretty self explanatory

#

and the verses are all things in between (also they might be dividided into several groups based on melody)

heady vigil
nova gale
#

oh. it seems Parser.parse_tab_lines uses Nones to signal EOF.

uneven heath
heady vigil
#

. lmao this actually came up once already

heady vigil
#

lmao

#

@ music enjoyers
is there any difference between 'eletronic music' and 'eletronica'

carmine quarry
#

electronica sounds to me like a non native english speaker thing

heady vigil
#

.

nova gale
#

80s-90s era iirc

#

basically elecronic music/EDM that is pop-like

#

Madonna did quite a lot of electronica

#

oh and Björk

upper moss
#

#1404223413937115330 message
jan pali o lukin e ijo ni pi jan Ali
nimi pi jan ante li sama nimi ona, ona li wile e ni: lipu li ken toki e ante jan

#

tag him for him to look here if you want, im just forwarding the message :]

nova gale
#

that is a known issue with how we handle authors. it's an impossible/extremely hard problem to solve with our current system if you don't want to add uuids to the users

#

(which would also be hard to implement and would just bring poki even closer to a database)

heady vigil
vague coral
#

o telo suli[?]
[???] o ku[?] tawa ma
o pana e pona
tawa mun mi toki e telo suli
lape pona · lape pona
lape · o meli pona

carmine quarry
#

what if /add had a toggle for "Submit this to lipu tenpo?"

#

if you choose submit, this creates a markdown pr on lapo, but also on lipu-tenpo/liputenpo.org, and a new issue on lipu-tenpo/proof-reading 🤔

heady vigil
#

maybe

shut flume
carmine quarry
#

not htat im aware of

heady vigil
#

^

#

tgank u for posting it

carmine quarry
#

given youve contributed heavily to it

hasty quarry
#

ni li ike ala tawa mi

prime jolt
#

there are two different nanpa kala collections for some reason

#

shouldn't one of them be nanpa supa?

carmine quarry
#

probably misnomer in the .yaml

#

easy pr, you don't even need to clone the repo

prime jolt
#

Images don't display

boreal meadow
vague coral
carmine quarry
#

@uneven heath @nova gale i just remembered ruby text exists and how to use it. this is very easy to html but kinda annoying in markdown in case someone just wants to skim read

#
<p>
  <ruby>sitelen <rt>Am</rt>
  </ruby> pimeja kama <br> li <ruby>kama <rt>F</rt>
  </ruby> tan wile mi ala <br>
  <ruby>sona <rt>Dm</rt>
  </ruby> li open lon lawa <br> li <ruby>lawa <rt>Am</rt>
  </ruby> e jan lili taso
</p>
nova gale
uneven heath
boreal meadow
#

could someone look at and merge my prs?

#

thank you

twilit haven
#

Seems like they just wrote a request for people to submit things to them.

carmine quarry
# twilit haven What the hell is this? https://lipu.pona.la/en/2020/09/lwiay/

John Patrick Douglass (born June 30, 1988), better known as jacksfilms, is an American YouTuber, videographer, musician, and sketch comedian. He is best known for his series Yesterday I Asked You (YIAY) and the now discontinued Your Grammar Sucks (YGS), in which he commentates on content sent by fans. Douglass' career on YouTube spans over 18 ye...

jagged burrow
#

@carmine quarry i'm having trouble setting up the ssh key for github on my new machine
i followed all the instructions—generated a key, added it to my github account, started an ssh-agent*, tested the connection to apparent success—but when i try to git push, i still get asked for a username and password, which obviously doesn't work on github
any idea what's going on? (if you need more information ping me)
*i'm using a tool called keychain for this)

#

oh, when i try to git commit in the repo i cloned from github, i get this error

Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'vivi@robotgirl.(none)')
fading plover
# jagged burrow oh, when i try to `git commit` in the repo i cloned from github, i get this erro...

this is a git specific issue, which it is explaining, but I'll clarify it a bit

when you make a change on the git repo, it needs to know who to attribute that work to
that knowledge is separate from gitHub, which mostly just stores and displays whatever git says
it's also separate from how you authenticate, i.e. the ssh key, though services like git prefer when those things match

if you run the commands it's saying there, it provides git your name and email, which will be attached to all future commits until you specify otherwise

fading plover
carmine quarry
fading plover
#

and probably some amount of backwards compatibility

paper halo
#

kin la nasin https li wile ala e nimi. jan li wile kama jo pi nimi ala la nasin ssh li ike.

kind mesaBOT
#

they let you create app passwords, similar to Google, which let apps login using 'email/password' without you giving the app your password

kala Asi ↩️

[Reply to:](#1252224729977327647 message) i actually have no idea why it allows to clone via https if it just fails to authenticate afterwards

nocturne compass
#

I have my thing setup with a credential manager too, so I don't need to find wherever I wouldve written the app password everytime

#

altho I imagine most people have that

jagged burrow
boreal meadow
#

Could someone please go over the miriad PRs?

carmine quarry
#

i think everything you committed to that branch is currently already on main, please double check what you intend to do there

boreal meadow
#

Yeah, but it wont let me use my branch propelrly while its unmerged

carmine quarry
#

your fork's main should track kulupu-lapo:main, not the other way round

boreal meadow
#

Okay I’ll try to fix it this afternoon.

#

I’m not the best at Git

carmine quarry
#

ye things get confusing sometimes

#

well, there might be

#

either way, just make sure no work is lost

boreal meadow
#

Alright

prime jolt
#

poki Lapo now has 1500 entries! 🎉

heady vigil
#

wowie

hasty quarry
warm valley
#

it's so old it uses pata, jesus

nova gale
#

i sadly feel it doesn't since poki is monolingual

nova gale
#

fair enough

#

i don't think jan pona should exist in poki tho..?

fading plover
#

why is being monolingual a requirement?

#

i feel like, so long as a piece is enough In toki pona, it really should meet the criteria
granted, literature is a little different from conversations, which is the main thing i'm imagining/comparing to

fading plover
#

but more generally:
does poki allow art that is About or Related To toki pona but not necessarily fully or at all in it?

carmine quarry
#

and we don't allow parallel text, i.e. if your work exists in two languages, only submit toki pona

carmine quarry
#

similar to toki pona li toki pona; sina jan pona mute, but with more english thrown in which i don't think matters

#

apeja li mi, on the other hand, is just unambiguously a valid page

vague coral
#
carmine quarry
#

this one is a whole composed of several languages, rather than a parallel text with identical content in all three, so its also valid

#

and its even got language tags, awesome

boreal meadow
#

Is finishing this being worked on by anyone?

#

-# I know that we usually say DIY or be the change you want to see in the world, but this is a much bigger undertaking and I'm also quite busy rn

#

It is a lot of work, but I think that we should try getting these done as they represent a very large and important part of tp literature

carmine quarry
#

or bring us volunteers, thats also valid

boreal meadow
#

I'll try. I was just trying to bring awareness to it here as I tend to forget about doing anything like this even when I easily could in my free time

vague coral
#

lipu monsuta la mi anpa

fading plover
nova gale
#

everything with a precision of day lives in a month folder

boreal meadow
#

Even if it’s only precise to the year?

carmine quarry
#

the date parameter is always precise to the day. the folder structure should match date. the date-precision parameter tells the user (lipu.pona.la, ilo Muni) how much of the date should be trusted

#

the real question is why is the date given as 2023-09-23 but then --09-23 is said to be untrusted. if you were making a complete guess itd be 2023-01-01

boreal meadow
fading plover
#

you could ask jan Nikola perhaps!

fading plover
nova gale
#

alright the date-precicion has been set incorrectly,, i will patch the file now

warm valley
#

hello! can someone merge 190-197, thank you

nova gale
#

i'll look at them

nova gale
warm valley
#

i still dont know how to do the branch thing sorry😔

carmine quarry
#

pr spam is fine

nova gale
carmine quarry
#

id argue its more gitish

#

each work is ultimately an independent decision to accept / reject with changes requested

#

and the job of the poki maintainers is essentially sanity checking

boreal meadow
#

a few new prs seem to have accumulated. it'd be great if someone checked them out

carmine quarry
carmine quarry
#

okay its possible that today/tomorrow i might touch lipu.pona.la

#

i believe the translation system is too ambitious and that most toki pona sites are explicitly just toki pona and English

#

because frankly, maintaining translations to other languages creates a lot of friction (annoying code to read and write, have to stay aware of any new strings that are added) while adding very little utility (lipu.pona.la currently sees single digit visits per day. wasona sees ~10% visits to all non english pages combined)

#

linku has shown us translations to other languages frequently get half-done, or sometimes finished and later get half-broken

#

if we hardcode specifically en-tok, however, we get the benefit of a toggle, and the benefit of just writing both versions close together in code

#

the downside is, cutting code that a contributor has given us, that might get useful in some possible future where toki pona is another order of magnitude bigger than it is right now

#

but frankly if that happens, we have bigger problems than translating. namely oh fuck we do not have nearly enough transcribers

carmine quarry
#

@heady vigil @nova gale @jagged burrow @ everyone else do share your thoughts

#

oh the other benefit is fewer possible urls. no /en/ /tok/ in the url

heady vigil
#

it is a possibility for sure

nova gale
#

fair enough imo

heady vigil
#

it is a fair hack of sorts for now

nova gale
#

also we are not really throwing anything away. as long as it's all in git, we can just partially revert to the i18 version if we so choose

heady vigil
#

git my beloved

carmine quarry
#

technically true but once lilith's implementation becomes old enough technical debt will at some point make it unusable

#

we are moving slowly enough, though, that this is in like... 5-10 years

jagged burrow
#

toki sina la mi pilin e tenpo ni sama: lipu sona.pona.la li weka e ken pi toki Inli ala
ona la tan li sama: toki ante li ken la ni li wile e pali suli li kama e pona lili

nova gale
boreal meadow
#

I agree

hasty quarry
#

yea im fine w that.. there's not rlly much force or need for languages other than tok or en. if there was a significant growing movement for toki pona in non-english (or potential for one) it'd b nice to have these things to encourage that but like, thats just not the case rn. & we only have the toki pona translation rn anyway
and like. the target audience rlly is just toki pona speakers, having other languages isn't that important - but it's nice to have at least one that can be google-translated for beginners to navigate quicker

#

translating lipu.pona.la is also like not fully doable, like there's no way you're gonna translate all the tags and metadata comments

#

i personally like the /en/ /tok/ url thing bc it means u can link to particular languages, it's clear there's translations, and each page has clean html (good for seo and graceful degradation and such)

#

having it on one page i guess makes switching quicker & reduces build times

#

having both translations directly in the code would simplify things a lot (for everything besides adding additional translations)

nocturne compass
carmine quarry
#

writing a lipu tenpo dumping script

#

which of course would have been more useful like a year ago but at least i want the process to be easy going forward

carmine quarry
#

currently working on liputenpo.org, learned that alpine is like super easy barely an inconvenience

#

might come back and add that on lipu.pona.la at some point, although theres other tech debt to address first before i do so

carmine quarry
#

frontend framework we could use for search

nocturne compass
#

is it concerning that I thought of alpine linux

carmine quarry
#

seems lightweight and going to impose much on us

river oxide
#

i’m a fan of alpinejs but haven’t used it, seems great for something lightweight like this though

#

a mi lukin ala e weka tenpo

fading plover
#

ive seen a few different ways to implement search in astro static sites
they're very similar to what ilo Muni does actually, except the searchable db is created at build time rather than being a site artifact

boreal meadow
#

A ton of submissions have accumulated. Can someone check on them?

carmine quarry
#

done

jagged burrow
#

how do i use it? i'm guessing i have to change this line so it points to where the liputenpo.org repo is on my computer, and then just run main.py?
-# (i'd also be changing the other constants ofc, like the comment instructs)

LIPU_TENPO_DIRECTORY = "../../../../liputenpo/liputenpo.org/toki/"
carmine quarry
jagged burrow
carmine quarry
#

@jagged burrow looks good to me, the feature request can probably just be

with open(figure out the right path / "lipu-tenpo.yaml", "a") as f:
    f.write(f"  - collections/lipu-tenpo/{digits}-nanpa-{word}.yaml\n")
#

you should be able to fit that in easily

#

file appending has the downside that you have to be careful not to run it twice, but a mistake like that can be caught during pr review, its fine

muted topaz
#

hello!
nasin Lanpan's formatting starts breaking around endnote 86, with every endnote from 87-123 being broken.
œ

carmine quarry
tropic oasis
#

mi pana e toki seme lo ni?

boreal meadow
tropic oasis
#

seme la mi ken sona e ni: toki pana mi li lon poki lipu ni

boreal meadow
tropic oasis
#

I submitted 3 works

tropic oasis
#

I just submitted one of my great work.

boreal meadow
#

How do we handle images again?

vestal herald
#

ideally, ask the author to create an alt text
my comics should all have one

boreal meadow
jagged burrow
#

@carmine quarry my commits on this branch aren't getting the usual checks/validation? what gives

carmine quarry
jagged burrow
#

sweet, its working now

boreal meadow
#

Could I please have perms for poki Lapo too?

#

I might want to start doing some archiving again

#

like lipu monsuta maybe

carmine quarry
boreal meadow
carmine quarry
carmine quarry
#

,

#

needs fixing

nova gale
#

damn

nova gale
#

uhh what is this, why is it tagged "lolitacore" and is it relevant to poki Lapo?

vague coral
nova gale
#

Merged some prs 👍

copper creek
#

toki! mi jan Sani. mi pali e sitelen sin. mi pana e sitelen mi tawa "lipu.pona.la". tenpo ni la, mi lukin ala e sitelen mi. sina ken ala ken open e sitelen mi tawa jan ale? pona tawa sina!

(Could you
please make them public on the site whenever you have a moment? I'd really appreciate it!
Thanks! 🙂 )

nova gale
#

the ones submitted around 6h ago?

#

i have them on my todo but i have been busy on another pona.la project, actually :D

#

i'll look trough them tomorrow

copper creek
copper creek
safe compass
#

how can i search it?

hasty quarry
#

I know this is pretty inconvenient, I think there were plans to add search to the website directly but afaik no ones working on it anymore

boreal meadow
#

Developement has mostly been moved to another server

#

But yeah, no one’s working on such fatures right now

nova gale
#

i talked abt this in pali pona but i will prolly start working on this project again after finishing mi pona

safe compass
#

oh

#

k

nova gale
#

is #282 toki pona enough

cosmic kelp
#

how are texts written in sitelen pona currently handled?

boreal meadow