Giter Club home page Giter Club logo

langua's People

Contributors

codacy-badger avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar imgbotapp avatar nai888 avatar renovate-bot avatar spring3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

langua's Issues

Find a way to open directly from the Open button

The Open button currently unhides the file input field, which then needs to be clicked in order to open a file. Instead, the open button itself should open the file directly to reduce the number of clicks required.

Frequen bar graph tooltip does not disappear when exiting the bar

Langua Version

v0.2.0

Expected Behavior

The tooltip that appears when hovering over a bar should disappear when the mouse leaves that bar without hovering over a new bar.

Actual Behavior

The tooltip stays in place until the mouse leaves the entire bar graph area, rather than disappearing as soon as the mouse leaves that particular bar.

Steps to Reproduce

Hover over a bar in the Frequen bar graph, then move the mouse off the bar into empty space in the graph.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @fortawesome/fontawesome-free in /yarn.lock:
Couldn't find package "xregexp@^4.3.0" required by "[email protected]" on the "npm" registry.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Add PWA notices for caching and updating

Review the create-react-app README's recommendations for creating a fully functioning progressive web app, and the offline behavior in particular.

Check out this page for help with notifying about available updates.

This code will be handled at around line 63 of registerServiceWorker.js.

Check out react-toastify as a possible way to handle the notifications themselves.

Langua Version

0.1.3

Desired Behavior

Add a notice for when the browser has cached the app and it can be accessed offline. Ideally, also notify users they can add Langua to the home screen of their mobile or tablet.

Add a notice when the server's version of Langua is different from the cached version, indicating that the user should refresh the page to load the newer version.

Home styles should refactor the panel:hover rule so it's not panel:link:hover

Home styles should refactor the panel:hover rule so it's not panel:link:hover.

Change

const styles = {
  grid: {
    display: 'flex',
    justifyContent: 'space-between',
    alignItems: 'baseline',
    flexWrap: 'wrap'
  },
  panel: {
    '&:link, &:visited, &:hover, &:active': {
      color: v.black.string(),
      width: '49%',
      marginBottom: `${v.lnht}rem`,
      padding: `${v.ms0}rem`,
      boxSizing: 'border-box',
      '&:hover': {
        outline: {
          width: '1px',
          style: 'solid',
          color: v.blu.darken(0.15).alpha(0.3).string()
        }
      }
    }
  },
  toolDescription: {
    margin: 0
  }
}

to

const styles = {
  grid: {
    display: 'flex',
    justifyContent: 'space-between',
    alignItems: 'baseline',
    flexWrap: 'wrap'
  },
  panel: {
    '&:link, &:visited, &:hover, &:active': {
      color: v.black.string(),
      width: '49%',
      marginBottom: `${v.lnht}rem`,
      padding: `${v.ms0}rem`,
      boxSizing: 'border-box'
    },
    '&:hover': {
      outline: {
        width: '1px',
        style: 'solid',
        color: v.blu.darken(0.15).alpha(0.3).string()
      }
    }
  },
  toolDescription: {
    margin: 0
  }
}

Add aria-label to all inputs

Langua Version

v0.3.1

Request

Related to #140.

Add arial-label to all inputs that don't already have a label in order to improve accessibility throughout the site.

Add ButtonLink component

Langua Version

0.1.4

Expected Behavior

Buttons should behave like button and links should behave like links. There shouldn't be a link that looks like a button.

Actual Behavior

The Help and Back buttons are currently links that look like buttons. Fix this.

Steps to Solve

Create a ButtonLink, a button that reroutes to a new URL by wrapping it in withrouter.

Also add cursor: pointer CSS to all buttons for visual affirmation of interactivity.

Add units to Gen input

Is your feature request related to a problem? Please describe.
Gen currently allows options but no other features. Adding units (options surrounded by [ ] brackets) will improve succinctness of input.

Describe the solution you'd like
Add the ability to use [ ] brackets to demarcate single units. For example, the code s[tu/top/kan] will produce the output stu stop skan.

Additional context
You can find the instructions for using this feature within Awkwords in its help file.

Related issues
#63

Correct the style functions

Current Code

const isCoolColor = (color) => {
  return color.hue < 300 && color.hue > 120
}

const isHighKeyValue = (color) => {
  return color.hue > 30 && color.hue < 140
}

const isHighestKeyValue = (color) => {
  return color.hue > 50 && color.hue < 105
}

Original Code

tallys/color-theory has the following:

@function is-cool-color($color) {
  @return hue($color) < 310 and hue($color) > 140;
}

@function is-high-key-value($color) {
  @return hue($color) > 20 and hue($color) < 190;
}

@function is-highest-key-value($color) {
  @return hue($color) > 30 and hue($color) <90;
}

Also Look Into Adding More Functions

tallys/color-theory has the following not currently included:

@function pick-contrast-of($color) {
  @if is-high-key-value($color){
    @if lightness($color) < 30% {
      @return lighten(complement($color), 86);
    }
    @else if lightness($color) > 70% {
      @return darken(complement($color), 68);
    }
    @else {
      @return darken(complement($color), 53);
    }
} @else {
  @if lightness($color) < 30% {
      @return lighten(complement($color), 86);
    }
    @else if lightness($color) > 70% {
      @return darken(complement($color), 68);
    }
    @else {
      @return lighten(complement($color), 53);
    }
  }
}

Add optional units to Gen

Is your feature request related to a problem? Please describe.
Gen currently allows options but no other features. Adding optional units (options surrounded by ( ) parentheses) will improve succinctness of input.

Describe the solution you'd like
Add the ability to use ( ) parentheses to demarcate single optional units. For example, the code s(tu/top/kan) will produce the output s stu stop skan.

Additional context
You can find the instructions for using this feature within Awkwords in its help file.

Related issues
#62

Add weights to Gen

Is your feature request related to a problem? Please describe.
There is currently no way to control the frequency of certain results. This should be added via weights.

Describe the solution you'd like
Add the ability to use * asterisks to weight certain options more than others. For example, the code CV*2/CVC will produce output where the pattern CV is twice as likely to appear as CVC is.

Additional context
You can find the instructions for using this feature within Awkwords in its help file.

Add filtering to Gen

Is your feature request related to a problem? Please describe.
There is currently no way to filter Gen's results. This should be added via filtering.

Describe the solution you'd like
Add the ability to use ^ carets to filter certain results. For example, if V is a subpattern a/i/u, the pattern [VV]^aa^ii^uu would produce the results ai au ia iu ua ui but never any of aa ii uu.

Additional context
You can find the instructions for using this feature within Awkwords in its help file.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error while updating /yarn.lock:
Couldn't find any versions for "scheduler" that matches "^16.6.2"

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

CSS styles assigned incorrectly when accessing subpage directly

Langua Version

0.1.3

Expected Behavior

Load each page's styles accurately, even if accessing a subpage directly.

Actual Behavior

When loading a subpage directly, the CSSinJS classes are assigned incorrectly, which causes elements to have the wrong appearance.

Steps to Reproduce

Load a subpage directly (e.g. go straight to https://nai888.github.io/langua/gen without loading the homepage first).

Note: since react-snap doesn't come into play until the build process, the issue only happens on the built static site, not on the development server.

Observations

This is an issue with react-snap generating a static HTML file with predefined CSS classes and then CSSinJS dynamically assigning the CSS classes to elements on the page. This is why loading the home page first works, because the elements are rendered in the "correct order" for the classes to be dynamically assigned to elements in the correct order.

Frequen bar graph tooltip does not appear in the correct location

Langua Version

v0.2.0 through current

Expected Behavior

When hovering over a bar in the bar graph in the results selection of Frequen, the tooltip with additional information about that particular bar should appear near the cursor.

Actual Behavior

The tooltip always appears in the upper left corner of the bar graph instead of appearing near the cursor.

Steps to Reproduce

Hover over a bar in the Frequen bar graph.

Capitalizing a phoneme with an allophone crashes

Langua Version

v0.4.2 through current

Expected Behavior

All phonemes in the Frequen consonants and vowels boxes should be converted to lowercase and deduped before analysis if distinguish upper and lower case = false.

Actual Behavior

When a phoneme with an allophone is capital and/or if its allophone is capital, the system crashes and the console prints the following error twice:

TypeError: Cannot read property 'count' of undefined
    at e.value (FrequenService.js:249)
    at t.<anonymous> (index.js:66)
    at oa (react-dom.production.min.js:4271)
    at ra (react-dom.production.min.js:4257)
    at Ba (react-dom.production.min.js:4983)
    at qa (react-dom.production.min.js:5123)
    at react-dom.production.min.js:5975
    at Object.t.unstable_runWithPriority (scheduler.production.min.js:274)
    at ju (react-dom.production.min.js:5974)
    at Cu (react-dom.production.min.js:5958)

This is likely caused by converting all phonemes to lowercase but failing to dedupe the allophones. Check that first.

Steps to Reproduce

Change a phoneme with an allophone and/or an allophone to a capital version of itself, make sure distinguish upper and lower case is unchecked, then click analyze.

[Feature Request] initial and final specific patterns

Is it possible to add word-initial and word-final patterns to LanguaGen?

For example, CV$(C)V(C)$VC would mean that a CV pattern is put in the initial syllables, then (C)V(C) as all the medial syllables, then VC as the final syllable.

I couldn't find any word generators that had this feature.

Thanks

Fix Gen control wrapping

Let the controls wrap and increase spacing above and below .controlPiece so that the spacing is better when it does wrap.

control: {
  flexWrap: 'wrap'
},
controlLeft: {
  flexWrap: 'wrap'
},
controlPiece: {
  margin: `${v.lnht}rem`
}

Add character escaping in Gen

Is your feature request related to a problem? Please describe.
There is currently no way to use control characters as characters you want in your results. This should be added via escaping.

Describe the solution you'd like
Add the ability to use " " quotes to escape control characters. For example, the pattern s[tu/ka] would produce stu ska, but the pattern s"[tu/ka]" would produce the output s[tu/ka].

Additional context
You can find the instructions for using this feature within Awkwords in its help file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.