Skip to content

Commit

Permalink
dart-kara
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Wo <[email protected]>
  • Loading branch information
brainwo committed Aug 9, 2024
0 parents commit 07eda9e
Show file tree
Hide file tree
Showing 17 changed files with 1,513 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: brianwo
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
24 changes: 24 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Analyze and format code

on:
push:
branches:
- main
paths:
- "**.dart"
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Format
run: dart format --set-exit-if-changed lib
- run: dart analyze
- run: dart test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://dart.dev/guides/libraries/private-files
# Created by `dart pub`
.dart_tool/
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.0.0

- Initial version.
28 changes: 28 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
BSD 3-Clause License

Copyright (c) 2024, Brian Wo

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
A Dart implementation of KARA.

> [!IMPORTANT]
> This library is not yet ready to be used.
11 changes: 11 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
include: package:lints/recommended.yaml

linter:
rules:
- lines_longer_than_80_chars
- unnecessary_breaks
- sort_constructors_first
# analyzer:
# exclude:
# - path/to/excluded/files/**

96 changes: 96 additions & 0 deletions bin/kara.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
import 'package:kara/kara.dart';

const raw = """KARA
Title: Shooting Star
Artist: Kep1er
Year: 2024
Album: Kep1going On
Languages: kor
# Romanizations: https://genius.com/Genius-romanizations-kep1er-shooting-star-romanized-lyrics
[Singers]
1: Xiaoting
2: Chaehyun
3: Yujin
4: Huening Bahiyyih
5: Mashiro
6: Yeseo
7: Yeongeun
8: Dayeon
9: Hikaru
[Intro]
:1
Da ra da da da da ooh
00:00:03.503 --> 00:00:11.177 Da ra da da da da ooh
[Verse]
:2,3,4,5
날 끌어당긴 감정의 Blasting
eng Blasting of the emotion that draws me in
jpn 私を引き寄せた感情の Blasting
zho 吸引我的情感 Blasting
00:00:12.929 --> 00:00:15.765 날 nal
00:00:12.929 --> 00:00:15.765 끌 kkeu
00:00:12.929 --> 00:00:15.765 어 oe
00:00:12.929 --> 00:00:15.765 당 dang
00:00:12.929 --> 00:00:15.765 긴 gin
00:00:12.929 --> 00:00:15.765 감 gam
00:00:12.929 --> 00:00:15.765 정 jeong
00:00:12.929 --> 00:00:15.765 의 ui
00:00:12.929 --> 00:00:15.765 Blas
00:00:12.929 --> 00:00:15.765 ting
[Pre-Chorus]
:1,2
순간 빛이 터져 Bomb Bomb Bomb
eng A sudden flash bursts like Bomb Bomb Bomb
jpn その瞬間 光が弾ける Bomb Bomb Bomb
zho 瞬间光芒迸发 Bomb Bomb Bomb
00:00:15.765 --> 00:00:18.476 순 sun
00:00:15.765 --> 00:00:18.476 간 gan
00:00:15.765 --> 00:00:18.476 빛 bi
00:00:15.765 --> 00:00:18.476 이 chi
00:00:15.765 --> 00:00:18.476 터 teo
00:00:15.765 --> 00:00:18.476 져 jyeo
00:00:15.765 --> 00:00:18.476 Bomb
00:00:15.765 --> 00:00:18.476 Bomb
00:00:15.765 --> 00:00:18.476 Bomb
유성같이 쏟아진 Feeling
eng Feelings pour down like meteors
jpn 流れ星のようにあふれる Feeling
zho 像流星雨般倾泻的 Feeling
00:00:18.476 --> 00:00:20.979 유 yu
00:00:18.476 --> 00:00:20.979 성 seong
00:00:18.476 --> 00:00:20.979 같 ga
00:00:18.476 --> 00:00:20.979 이 chi
00:00:18.476 --> 00:00:20.979 쏟 sso
00:00:18.476 --> 00:00:20.979 아 da
00:00:18.476 --> 00:00:20.979 진 jin
00:00:18.476 --> 00:00:20.979 Fee
00:00:18.476 --> 00:00:20.979 ling
또 다른 시작을 알려와 (Let's start)
eng Announcing another beginning (Let's start)
jpn 新しい始まりを知らせる(Let's start)
zho 宣布另一个开始 (Let's start)
00:00:20.979 --> 00:00:25.108 또 tto
00:00:20.979 --> 00:00:25.108 다 da
00:00:20.979 --> 00:00:25.108 른 reun
00:00:20.979 --> 00:00:25.108 시 si
00:00:20.979 --> 00:00:25.108 작 jag
00:00:20.979 --> 00:00:25.108 을 uel
00:00:20.979 --> 00:00:25.108 알 all
00:00:20.979 --> 00:00:25.108 려 yeo
00:00:20.979 --> 00:00:25.108 와 wa
00:00:20.979 --> 00:00:25.108 (Let's start)
""";

void main() {
parse(raw);
}
Loading

0 comments on commit 07eda9e

Please sign in to comment.